Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_UpdateInbuffWrapper.F90
Go to the documentation of this file.
1 ! *********************************************************************
2 ! * Rocstar Simulation Suite *
3 ! * Copyright@2015, Illinois Rocstar LLC. All rights reserved. *
4 ! * *
5 ! * Illinois Rocstar LLC *
6 ! * Champaign, IL *
7 ! * www.illinoisrocstar.com *
8 ! * sales@illinoisrocstar.com *
9 ! * *
10 ! * License: See LICENSE file in top level of distribution package or *
11 ! * http://opensource.org/licenses/NCSA *
12 ! *********************************************************************
13 ! *********************************************************************
14 ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
15 ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES *
16 ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
17 ! * NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR *
18 ! * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
19 ! * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
20 ! * Arising FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
21 ! * USE OR OTHER DEALINGS WITH THE SOFTWARE. *
22 ! *********************************************************************
23 ! ******************************************************************************
24 !
25 ! Purpose: Fill GENX incoming buffers.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! region Data of current region
31 ! istage Current RK stage
32 !
33 ! Output: regions%levels%mixt = new solution after one time step.
34 !
35 ! Notes: none.
36 !
37 ! ******************************************************************************
38 !
39 ! $Id: RFLU_UpdateInbuffWrapper.F90,v 1.6 2008/12/06 08:44:01 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2003-2005 by the University of Illinois
42 !
43 ! ******************************************************************************
44 
45 SUBROUTINE rflu_updateinbuffwrapper(region,istage)
46 
47  USE moddatatypes
48  USE moddatastruct, ONLY: t_region
49  USE modglobal, ONLY: t_global
50  USE moderror
51  USE modmpi
52  USE modparameters
53 
54 #ifdef GENX
57 #endif
58 
59  IMPLICIT NONE
60 
61 #ifdef GENX
62  include 'roccomf90.h'
63 #endif
64 
65 ! ******************************************************************************
66 ! Definitions and declarations
67 ! ******************************************************************************
68 
69 ! ==============================================================================
70 ! Arguments
71 ! ==============================================================================
72 
73  INTEGER :: istage
74  TYPE(t_region) :: region
75 
76 ! ==============================================================================
77 ! Locals
78 ! ==============================================================================
79 
80  CHARACTER(CHRLEN) :: rcsidentstring
81  REAL(RFREAL) :: time
82  REAL(RFREAL) :: trk(5)
83  TYPE(t_global), POINTER :: global
84 
85 #ifdef GENX
86  DOUBLE PRECISION :: alpha
87 #endif
88 
89 ! ******************************************************************************
90 ! Start
91 ! ******************************************************************************
92 
93  rcsidentstring = '$RCSfile: RFLU_UpdateInbuffWrapper.F90,v $ $Revision: 1.6 $'
94 
95  global => region%global
96 
97  CALL registerfunction(global,'RFLU_UpdateInbuffWrapper',&
98  'RFLU_UpdateInbuffWrapper.F90')
99 
100 #ifdef GENX
101 ! ******************************************************************************
102 ! Fill incoming buffers
103 ! ******************************************************************************
104 
105  trk(:) = region%mixtInput%trk(:)
106 
107  time = global%currentTime + global%dtMin*(trk(istage) - trk(1))
108  alpha = (time-global%timeStamp)/global%dTimeSystem
109 
110  CALL com_call_function(global%genxHandleBc,2,alpha,1)
111  CALL rflu_putboundaryvaluesalpha(region)
112  CALL com_call_function(global%genxHandleBc,2,alpha,2)
113  CALL rflu_getboundaryvalues(region)
114 #endif
115 
116 ! ******************************************************************************
117 ! End
118 ! ******************************************************************************
119 
120  CALL deregisterfunction(global)
121 
122 END SUBROUTINE rflu_updateinbuffwrapper
123 
124 ! ******************************************************************************
125 !
126 ! RCS Revision history:
127 !
128 ! $Log: RFLU_UpdateInbuffWrapper.F90,v $
129 ! Revision 1.6 2008/12/06 08:44:01 mtcampbe
130 ! Updated license.
131 !
132 ! Revision 1.5 2008/11/19 22:17:15 mtcampbe
133 ! Added Illinois Open Source License/Copyright
134 !
135 ! Revision 1.4 2005/04/15 15:05:59 haselbac
136 ! Removed USE RFLU_ModFEM, cosmetics
137 !
138 ! Revision 1.3 2003/05/09 17:01:03 jiao
139 ! Renamed the COM_call_function_handlers to COM_call_function.
140 !
141 ! Revision 1.2 2003/04/12 21:35:51 haselbac
142 ! Clean-up
143 !
144 ! Revision 1.1 2003/03/28 19:37:18 fnajjar
145 ! Initial Import for RocfluidMP
146 !
147 ! ******************************************************************************
148 
149 
150 
151 
152 
153 
154 
subroutine rflu_updateinbuffwrapper(region, istage)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_putboundaryvaluesalpha(region)
subroutine rflu_getboundaryvalues(region)
unsigned char alpha() const
Definition: Color.h:75
subroutine deregisterfunction(global)
Definition: ModError.F90:469