Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLO_GetUserInput.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: read and process user input for the core solver
26 ! and all physical modules.
27 !
28 ! Description: none.
29 !
30 ! Input: regions = dimensions and topology (finest grid).
31 !
32 ! Output: regions = dimensions, topology and user input on all grid levels.
33 !
34 ! Notes:
35 !
36 !******************************************************************************
37 !
38 ! $Id: RFLO_GetUserInput.F90,v 1.6 2008/12/06 08:44:27 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2001 by the University of Illinois
41 !
42 !******************************************************************************
43 
44 SUBROUTINE rflo_getuserinput( regions )
45 
46  USE moddatatypes
47  USE moddatastruct, ONLY : t_region
48  USE modglobal, ONLY : t_global
52 #ifdef PLAG
54 #endif
55 #ifdef PEUL
57 #endif
58 #ifdef PERI
60 #endif
61 #ifdef RADI
63 #endif
64 #ifdef SPEC
66 #endif
67 #ifdef TURB
69 #endif
70 #ifdef INRT
72 #endif
73  USE modmpi
74  USE moderror
75  USE modparameters
76  IMPLICIT NONE
77 
78 ! ... parameters
79  TYPE (t_region), POINTER :: regions(:)
80 
81 ! ... local variables
82  TYPE(t_global), POINTER :: global
83 
84 !******************************************************************************
85 
86  global => regions(1)%global
87 
88  CALL registerfunction( global,'RFLO_GetUserInput',&
89  'RFLO_GetUserInput.F90' )
90 
91 ! input for mixture & base solver
92 
93  CALL rflo_userinput( regions )
94 
95 ! input for physical modules
96 
97 #ifdef PLAG
98  CALL plag_userinput( regions )
99 #endif
100 
101 #ifdef PEUL
102  CALL peul_userinput( regions )
103 #endif
104 
105 #ifdef PERI
106  CALL peri_userinput( regions )
107 #endif
108 
109 #ifdef RADI
110  CALL radi_userinput( regions )
111 #endif
112 
113 #ifdef SPEC
114  CALL spec_userinput( regions )
115 #endif
116 
117 #ifdef TURB
118  CALL turb_userinput( regions )
119 #endif
120 
121 #ifdef INRT
122  CALL inrt_userinput( regions ) ! must follow all other *_UserInput routines
123 #endif
124 
125 
126  CALL rflo_copytopologylevels( regions )
127 
128 
129  CALL rflo_checkbcinput( regions )
130 
131 
132  CALL rflo_readtbcinputfile( regions )
133 
134 
135 
136 ! Check user input which requires knowledge of MP module input
137 
138 
139 
140  CALL rflo_checkderiveduserinput(regions)
141 
142 ! write user input
143 
144  IF (global%myProcid==masterproc .AND. global%verbLevel>=verbose_med) THEN
145  CALL rflo_printuserinput( regions )
146  ENDIF
147 
148 ! finalize
149 
150  CALL deregisterfunction( global )
151 
152 END SUBROUTINE rflo_getuserinput
153 
154 !******************************************************************************
155 !
156 ! RCS Revision history:
157 !
158 ! $Log: RFLO_GetUserInput.F90,v $
159 ! Revision 1.6 2008/12/06 08:44:27 mtcampbe
160 ! Updated license.
161 !
162 ! Revision 1.5 2008/11/26 14:03:24 mtcampbe
163 !
164 ! Port to NCSA Abe cluster. RFLO=1 works as-is. RFLU=1 needs some source mods
165 ! to match Fortran name mangling. Next checkin will make this automatic.
166 !
167 ! Revision 1.4 2008/11/19 22:17:38 mtcampbe
168 ! Added Illinois Open Source License/Copyright
169 !
170 ! Revision 1.3 2008/10/23 18:20:57 mtcampbe
171 ! Crazy number of changes to track and fix initialization and
172 ! restart bugs. Many improperly formed logical expressions
173 ! were fixed, and bug in allocation for data associated with
174 ! the BC_INFLOWVELTEMP boundary condition squashed in
175 ! RFLO_ReadBcInflowVelSection.F90.
176 !
177 ! Revision 1.2 2004/11/30 20:12:15 fnajjar
178 ! Added call to RFLO_CheckDerivedUserInput
179 !
180 ! Revision 1.1 2004/11/29 20:51:39 wasistho
181 ! lower to upper case
182 !
183 ! Revision 1.14 2003/11/20 16:40:39 mdbrandy
184 ! Backing out RocfluidMP changes from 11-17-03
185 !
186 ! Revision 1.10 2003/09/26 21:44:28 fnajjar
187 ! Modified ModInterfaces calls to proper physical modules
188 !
189 ! Revision 1.9 2003/08/28 20:35:21 wasistho
190 ! excluced ModInterfacesTurbulence,Radiation,Periodic from ModInterfaces
191 !
192 ! Revision 1.8 2003/05/15 02:57:04 jblazek
193 ! Inlined index function.
194 !
195 ! Revision 1.7 2003/03/29 03:30:11 wasistho
196 ! install ROCPERI
197 !
198 ! Revision 1.6 2003/03/11 16:04:19 jferry
199 ! Enclosed USE statements for multi-physics routines within ifdefs
200 !
201 ! Revision 1.5 2003/03/04 22:12:34 jferry
202 ! Initial import of Rocinteract
203 !
204 ! Revision 1.4 2003/02/11 22:49:53 jferry
205 ! Re-worked BC and TBC input routines to add multi-physics capability
206 !
207 ! Revision 1.1 2003/02/11 22:30:21 jferry
208 ! Re-worked BC and TBC input routines to add multi-physics capability
209 !
210 ! Revision 1.3 2002/09/17 22:51:23 jferry
211 ! Removed Fast Eulerian particle type
212 !
213 ! Revision 1.2 2002/09/05 17:40:21 jblazek
214 ! Variable global moved into regions().
215 !
216 ! Revision 1.1 2002/02/25 22:36:53 jblazek
217 ! Simplified solver initialization routine.
218 !
219 !******************************************************************************
220 
221 
222 
223 
224 
225 
226 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine peul_userinput(regions)
subroutine peri_userinput(regions)
subroutine rflo_copytopologylevels(regions)
subroutine rflo_checkderiveduserinput(regions)
subroutine rflo_readtbcinputfile(regions)
subroutine rflo_printuserinput(regions)
subroutine inrt_userinput(regions)
subroutine spec_userinput(regions)
subroutine rflo_checkbcinput(regions)
subroutine turb_userinput(regions)
subroutine rflo_getuserinput(regions)
subroutine rflo_userinput(regions)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine plag_userinput(regions)