66 TYPE(t_region
),
DIMENSION(:),
POINTER :: regions
74 INTEGER ::
brbeg, brend
75 INTEGER,
PARAMETER :: nvals_max = 1
78 INTEGER,
PARAMETER :: nvals_max = 29
81 CHARACTER(10) :: keys(nvals_max)
82 LOGICAL :: defined(nvals_max)
83 REAL(RFREAL) :: vals(nvals_max)
90 global => regions(1)%global
93 'ReadInitFlowSection.F90')
137 brbeg,brend,defined )
139 IF (defined(1).eqv..true.) regions(
brbeg:brend)%nDumCells = abs(vals(1)+0.5_rfreal)
145 IF ( defined(1) .EQV. .false. )
THEN
146 CALL
errorstop(global,err_val_undefined,__line__,
'INITFLOW-FLAG')
148 IF ( nint(vals(1)) == initflow_fromscratch )
THEN
149 global%initFlowFlag = initflow_fromscratch
151 DO ireg = lbound(regions,1),ubound(regions,1)
152 SELECT CASE ( regions(ireg)%mixtInput%fluidModel )
153 CASE ( fluid_model_incomp )
155 IF ( defined(
i) .EQV. .false. )
THEN
156 CALL
errorstop(global,err_val_undefined,__line__,keys(
i))
160 regions(ireg)%mixtInput%iniVelX = vals(2)
161 regions(ireg)%mixtInput%iniVelY = vals(3)
162 regions(ireg)%mixtInput%iniVelZ = vals(4)
163 regions(ireg)%mixtInput%iniPress = vals(5)
164 CASE ( fluid_model_comp )
165 SELECT CASE ( regions(ireg)%mixtInput%gasModel )
166 CASE ( gas_model_tcperf, &
167 gas_model_mixt_tcperf, &
168 gas_model_mixt_tperf, &
169 gas_model_mixt_pseudo )
171 IF ( defined(
i) .EQV. .false. )
THEN
172 CALL
errorstop(global,err_val_undefined,__line__,keys(
i))
176 regions(ireg)%mixtInput%iniVelX = vals(2)
177 regions(ireg)%mixtInput%iniVelY = vals(3)
178 regions(ireg)%mixtInput%iniVelZ = vals(4)
179 regions(ireg)%mixtInput%iniPress = vals(5)
180 regions(ireg)%mixtInput%iniDens = vals(6)
181 CASE ( gas_model_mixt_gasliq )
183 IF ( defined(
i) .EQV. .false. )
THEN
184 CALL
errorstop(global,err_val_undefined,__line__,keys(
i))
189 IF ( defined(
i) .EQV. .false. )
THEN
190 CALL
errorstop(global,err_val_undefined,__line__,keys(
i))
194 regions(ireg)%mixtInput%iniVelX = vals(2)
195 regions(ireg)%mixtInput%iniVelY = vals(3)
196 regions(ireg)%mixtInput%iniVelZ = vals(4)
197 regions(ireg)%mixtInput%iniPress = vals(5)
198 regions(ireg)%mixtInput%iniTemp = vals(7)
200 CALL
errorstop(global,err_reached_default,__line__)
203 CALL
errorstop(global,err_reached_default,__line__)
206 ELSE IF ( nint(vals(1)) == initflow_fromfile )
THEN
207 global%initFlowFlag = initflow_fromfile
208 ELSE IF ( nint(vals(1)) == initflow_fromhardcode )
THEN
209 global%initFlowFlag = initflow_fromhardcode
210 ELSE IF ( nint(vals(1)) == initflow_fromcombo_serial )
THEN
211 global%initFlowFlag = initflow_fromcombo_serial
212 ELSE IF ( nint(vals(1)) == initflow_fromcombo_parallel )
THEN
213 global%initFlowFlag = initflow_fromcombo_parallel
215 CALL
errorstop(global,err_reached_default,__line__)
219 DO ireg = lbound(regions,1),ubound(regions,1)
220 IF ( defined(8) .EQV. .false. )
THEN
221 regions(ireg)%mixtInput%prepIntVal1 = crazy_value_int
223 regions(ireg)%mixtInput%prepIntVal1 = vals(8)
226 IF ( defined(9) .EQV. .false. )
THEN
227 regions(ireg)%mixtInput%prepIntVal2 = crazy_value_int
229 regions(ireg)%mixtInput%prepIntVal2 = vals(9)
232 IF ( defined(10) .EQV. .false. )
THEN
233 regions(ireg)%mixtInput%prepIntVal3 = crazy_value_int
235 regions(ireg)%mixtInput%prepIntVal3 = vals(10)
238 IF ( defined(11) .EQV. .false. )
THEN
239 regions(ireg)%mixtInput%prepIntVal4 = crazy_value_int
241 regions(ireg)%mixtInput%prepIntVal4 = vals(11)
244 IF ( defined(12) .EQV. .false. )
THEN
245 regions(ireg)%mixtInput%prepIntVal5 = crazy_value_int
247 regions(ireg)%mixtInput%prepIntVal5 = vals(12)
250 IF ( defined(13) .EQV. .false. )
THEN
251 regions(ireg)%mixtInput%prepIntVal6 = crazy_value_int
253 regions(ireg)%mixtInput%prepIntVal6 = vals(13)
256 IF ( defined(14) .EQV. .false. )
THEN
257 regions(ireg)%mixtInput%prepRealVal1 =
REAL(crazy_value_int,kind=rfreal)
259 regions(ireg)%mixtInput%prepRealVal1 = vals(14)
262 IF ( defined(15) .EQV. .false. )
THEN
263 regions(ireg)%mixtInput%prepRealVal2 =
REAL(crazy_value_int,kind=rfreal)
265 regions(ireg)%mixtInput%prepRealVal2 = vals(15)
268 IF ( defined(16) .EQV. .false. )
THEN
269 regions(ireg)%mixtInput%prepRealVal3 =
REAL(crazy_value_int,kind=rfreal)
271 regions(ireg)%mixtInput%prepRealVal3 = vals(16)
274 IF ( defined(17) .EQV. .false. )
THEN
275 regions(ireg)%mixtInput%prepRealVal4 =
REAL(crazy_value_int,kind=rfreal)
277 regions(ireg)%mixtInput%prepRealVal4 = vals(17)
280 IF ( defined(18) .EQV. .false. )
THEN
281 regions(ireg)%mixtInput%prepRealVal5 =
REAL(crazy_value_int,kind=rfreal)
283 regions(ireg)%mixtInput%prepRealVal5 = vals(18)
286 IF ( defined(19) .EQV. .false. )
THEN
287 regions(ireg)%mixtInput%prepRealVal6 =
REAL(crazy_value_int,kind=rfreal)
289 regions(ireg)%mixtInput%prepRealVal6 = vals(19)
292 IF ( defined(20) .EQV. .false. )
THEN
293 regions(ireg)%mixtInput%prepRealVal7 =
REAL(crazy_value_int,kind=rfreal)
295 regions(ireg)%mixtInput%prepRealVal7 = vals(20)
298 IF ( defined(21) .EQV. .false. )
THEN
299 regions(ireg)%mixtInput%prepRealVal8 =
REAL(crazy_value_int,kind=rfreal)
301 regions(ireg)%mixtInput%prepRealVal8 = vals(21)
304 IF ( defined(22) .EQV. .false. )
THEN
305 regions(ireg)%mixtInput%prepRealVal9 =
REAL(crazy_value_int,kind=rfreal)
307 regions(ireg)%mixtInput%prepRealVal9 = vals(22)
310 IF ( defined(23) .EQV. .false. )
THEN
311 regions(ireg)%mixtInput%prepRealVal10 =
REAL(crazy_value_int,kind=rfreal)
313 regions(ireg)%mixtInput%prepRealVal10 = vals(23)
316 IF ( defined(24) .EQV. .false. )
THEN
317 regions(ireg)%mixtInput%prepRealVal11 =
REAL(crazy_value_int,kind=rfreal)
319 regions(ireg)%mixtInput%prepRealVal11 = vals(24)
322 IF ( defined(25) .EQV. .false. )
THEN
323 regions(ireg)%mixtInput%prepRealVal12 =
REAL(crazy_value_int,kind=rfreal)
325 regions(ireg)%mixtInput%prepRealVal12 = vals(25)
328 IF ( defined(26) .EQV. .false. )
THEN
329 regions(ireg)%mixtInput%prepRealVal13 =
REAL(crazy_value_int,kind=rfreal)
331 regions(ireg)%mixtInput%prepRealVal13 = vals(26)
334 IF ( defined(27) .EQV. .false. )
THEN
335 regions(ireg)%mixtInput%prepRealVal14 =
REAL(crazy_value_int,kind=rfreal)
337 regions(ireg)%mixtInput%prepRealVal14 = vals(27)
340 IF ( defined(28) .EQV. .false. )
THEN
341 regions(ireg)%mixtInput%prepRealVal15 =
REAL(crazy_value_int,kind=rfreal)
343 regions(ireg)%mixtInput%prepRealVal15 = vals(28)
346 IF ( defined(29) .EQV. .false. )
THEN
347 regions(ireg)%mixtInput%prepRealVal16 =
REAL(crazy_value_int,kind=rfreal)
349 regions(ireg)%mixtInput%prepRealVal16 = vals(29)
subroutine registerfunction(global, funName, fileName)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE brbeg
subroutine readinitflowsection(regions)
subroutine readsection(global, fileID, nvals, keys, vals, defined)
subroutine readregionsection(global, fileID, nvals, keys, vals, brbeg, brend, defined)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE USE ModDataTypes USE nvals
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)