59 TYPE(t_region
),
POINTER :: regions(:)
65 INTEGER ::
brbeg, brend
66 INTEGER,
PARAMETER :: nvals_max = 11
70 INTEGER,
PARAMETER :: nvals_max = 16
73 CHARACTER(10) :: keys(nvals_max)
75 LOGICAL :: defined(nvals_max)
77 REAL(RFREAL) :: vals(nvals_max)
83 global => regions(1)%global
86 'ReadNumericsSection.F90' )
102 keys(10) =
'PSWOMEGA'
103 keys(11) =
'FEAVERAG'
108 IF (defined(3).eqv..true.)
THEN
109 SELECT CASE(int(vals(3)+0.5_rfreal))
111 regions(
brbeg:brend)%mixtInput%spaceDiscr = discr_cen_scal
113 regions(
brbeg:brend)%mixtInput%spaceDiscr = discr_upw_roe
115 regions(
brbeg:brend)%mixtInput%spaceDiscr = discr_upw_maps
118 IF (defined(4).eqv..true.)
THEN
119 SELECT CASE(int(vals(4)+0.5_rfreal))
121 regions(
brbeg:brend)%mixtInput%spaceOrder = discr_order_1
123 regions(
brbeg:brend)%mixtInput%spaceOrder = discr_order_2
125 regions(
brbeg:brend)%mixtInput%spaceOrder = discr_order_4
128 IF (defined(8).eqv..true.)
THEN
129 IF (vals(8) > 1.e-10_rfreal)
THEN
130 regions(
brbeg:brend)%mixtInput%vis4 = 1._rfreal/vals(8)
131 ELSEIF (vals(8) > 0._rfreal .AND. vals(8) <= 1.e-10_rfreal)
THEN
132 regions(
brbeg:brend)%mixtInput%vis4 = 1.e+10_rfreal
133 ELSEIF (vals(8) <= 0._rfreal )
THEN
134 regions(
brbeg:brend)%mixtInput%vis4 = 0.0_rfreal
137 IF (defined(9).eqv..true.)
THEN
138 IF (vals(9) < 0.5_rfreal)
THEN
139 regions(
brbeg:brend)%mixtInput%pSwitchType = pswitch_std
141 regions(
brbeg:brend)%mixtInput%pSwitchType = pswitch_tvd
144 IF (defined( 1).eqv..true.) regions(
brbeg:brend)%mixtInput%cfl = abs(vals(1))
145 IF (defined( 2).eqv..true.) regions(
brbeg:brend)%mixtInput%smoocf = vals(2)
146 IF (defined( 5).eqv..true.) regions(
brbeg:brend)%mixtInput%limfac = abs(vals(5))
147 IF (defined( 6).eqv..true.) regions(
brbeg:brend)%mixtInput%epsentr = abs(vals(6))
148 IF (defined( 7).eqv..true.) regions(
brbeg:brend)%mixtInput%vis2 = abs(vals(7))
149 IF (defined(10).eqv..true.) regions(
brbeg:brend)%mixtInput%pSwitchOmega = abs(vals(10))
150 IF (defined(11).eqv..true.)
THEN
151 IF (vals(11) < 0.5_rfreal)
THEN
152 regions(
brbeg:brend)%mixtInput%faceEdgeAvg = fe_avg_uniform
154 regions(
brbeg:brend)%mixtInput%faceEdgeAvg = fe_avg_linear
164 keys( 5) =
'DISSFACT'
167 keys( 8) =
'CRECONSTC'
168 keys( 9) =
'CRECONSTF'
169 keys(10) =
'CRECONSTCW'
170 keys(11) =
'CRECONSTFW'
171 keys(12) =
'TOLERICT'
172 keys(13) =
'SDIMENSC'
173 keys(14) =
'SDIMENSF'
174 keys(15) =
'SDIMENSBF'
180 IF ( defined(1) .EQV. .true. )
THEN
181 DO ireg = lbound(regions,1),ubound(regions,1)
182 regions(ireg)%mixtInput%cfl = abs(vals(1))
186 IF ( defined(2) .EQV. .true. )
THEN
187 DO ireg = lbound(regions,1),ubound(regions,1)
188 regions(ireg)%mixtInput%spaceDiscr = nint(vals(2))
192 IF ( defined(3) .EQV. .true. )
THEN
193 DO ireg = lbound(regions,1),ubound(regions,1)
194 regions(ireg)%mixtInput%spaceOrder = nint(vals(3))
198 IF ( defined(4) .EQV. .true. )
THEN
199 DO ireg = lbound(regions,1),ubound(regions,1)
200 regions(ireg)%mixtInput%epsentr = abs(vals(4))
204 IF ( defined(5) .EQV. .true. )
THEN
205 DO ireg = lbound(regions,1),ubound(regions,1)
206 regions(ireg)%mixtInput%dissFact = abs(vals(5))
210 IF ( defined(6) .EQV. .true. )
THEN
211 DO ireg = lbound(regions,1),ubound(regions,1)
212 regions(ireg)%mixtInput%reconst = nint(vals(6))
216 IF ( defined(7) .EQV. .true. )
THEN
217 DO ireg = lbound(regions,1),ubound(regions,1)
218 regions(ireg)%mixtInput%dimens = nint(vals(7))
222 IF ( defined(8) .EQV. .true. )
THEN
223 DO ireg = lbound(regions,1),ubound(regions,1)
224 regions(ireg)%mixtInput%cReconstCells = nint(vals(8))
228 IF ( defined(9) .EQV. .true. )
THEN
229 DO ireg = lbound(regions,1),ubound(regions,1)
230 regions(ireg)%mixtInput%cReconstFaces = nint(vals(9))
234 IF ( defined(10) .EQV. .true. )
THEN
235 DO ireg = lbound(regions,1),ubound(regions,1)
236 regions(ireg)%mixtInput%cReconstCellsWeight = abs(vals(10))
240 IF ( defined(11) .EQV. .true. )
THEN
241 DO ireg = lbound(regions,1),ubound(regions,1)
242 regions(ireg)%mixtInput%cReconstFacesWeight = abs(vals(11))
246 IF ( defined(12) .EQV. .true. )
THEN
247 DO ireg = lbound(regions,1),ubound(regions,1)
248 regions(ireg)%mixtInput%tolerICT = abs(vals(12))
252 IF ( defined(13) .EQV. .true. )
THEN
253 DO ireg = lbound(regions,1),ubound(regions,1)
254 regions(ireg)%mixtInput%stencilDimensCells = abs(vals(13))
258 IF ( defined(14) .EQV. .true. )
THEN
259 DO ireg = lbound(regions,1),ubound(regions,1)
260 regions(ireg)%mixtInput%stencilDimensFaces = abs(vals(14))
264 IF ( defined(15) .EQV. .true. )
THEN
265 DO ireg = lbound(regions,1),ubound(regions,1)
266 regions(ireg)%mixtInput%stencilDimensBFaces = abs(vals(15))
270 IF ( defined(16) .EQV. .true. )
THEN
271 DO ireg = lbound(regions,1),ubound(regions,1)
272 regions(ireg)%mixtInput%spaceOrderBFaces = abs(vals(16))
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 readnumericssection(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 deregisterfunction(global)