64 TYPE(t_region
),
POINTER :: regions(:)
70 INTEGER,
PARAMETER :: nkeys_max = 20
72 CHARACTER(CHRLEN) :: rcsidentstring
73 CHARACTER(CHRLEN) :: keys(nkeys_max)
77 INTEGER :: nimplkeys,nnodekeys,nkeys
78 INTEGER :: ind,indmixt,indplag0
79 INTEGER :: ikeyused,ikeymodel,ikeynode0
80 INTEGER :: ikeymixtactv,ikeyplagactv,ikeymixtperm,ikeyplagperm
82 LOGICAL :: defined(nkeys_max)
84 REAL(RFREAL) :: vals(nkeys_max)
92 rcsidentstring =
'$RCSfile: INRT_ReadDrag.F90,v $ $Revision: 1.4 $'
94 global => regions(1)%global
107 keys(ikeyused) =
'USED'
108 keys(ikeymodel) =
'MODEL'
112 ikeynode0 = nimplkeys
113 ikeymixtactv = ikeynode0 + 1
114 ikeyplagactv = ikeynode0 + 2
115 ikeymixtperm = ikeynode0 + 3
116 ikeyplagperm = ikeynode0 + 4
119 keys(ikeymixtactv) =
'MIXT_ACTV'
120 keys(ikeyplagactv) =
'PLAG_ACTV'
121 keys(ikeymixtperm) =
'MIXT_PERM'
122 keys(ikeyplagperm) =
'PLAG_PERM'
124 nkeys = ikeynode0 + nnodekeys
126 IF (nkeys > nkeys_max) CALL
errorstop( global,err_exceeds_decl_mem,__line__ )
134 CALL
readsection( global,if_input,nkeys,keys,vals,defined )
135 brbeg = lbound(regions,1)
136 brend = ubound(regions,1)
141 input => regions(ireg)%inrtInput
142 inrt =>
input%inrts(inrt_type_drag)
146 IF (.NOT.
input%defaultRead) &
147 CALL
errorstop( global,err_inrt_defunread,__line__ )
149 IF (inrt%used) CALL
errorstop( global,err_inrt_read,__line__ )
155 indmixt =
input%indMixt
156 indplag0 =
input%indPlag0
162 IF (defined(ikeyused))
THEN
163 IF (nint(vals(ikeyused)) == 0) inrt%used = .false.
166 IF (nplag < 1) inrt%used = .false.
168 IF (.NOT. inrt%used) cycle
176 inrt%switches(inrt_swi_drag_model) = inrt_drag_model_default
178 IF (defined(ikeymodel))
THEN
180 SELECT CASE (nint(vals(ikeymodel)))
183 inrt%switches(inrt_swi_drag_model) = inrt_drag_model_stokes
186 inrt%switches(inrt_swi_drag_model) = inrt_drag_model_sn
189 inrt%switches(inrt_swi_drag_model) = inrt_drag_model_smrfld
192 CALL
errorstop( global,err_inrt_badswitch,__line__ )
200 IF (defined(ikeymixtactv)) &
202 inrt%activeness(indmixt))
204 IF (defined(ikeymixtperm)) &
206 inrt%permission(indmixt))
212 ind = indplag0 + iplag
214 IF (defined(ikeyplagactv)) &
216 inrt%activeness(ind))
218 IF (defined(ikeyplagperm)) &
220 inrt%permission(ind))
subroutine registerfunction(global, funName, fileName)
subroutine inrt_definedrag(region)
subroutine inrt_determinetokens(region, inrt)
**********************************************************************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 input(X, NNODE, NDC, NCELL, NFCE, NBPTS, NBFACE, ITYP, NPROP, XBNDY, XFAR, YFAR, ZFAR)
subroutine inrt_setactiveness(global, val, actv)
subroutine readsection(global, fileID, nvals, keys, vals, defined)
subroutine readregionsection(global, fileID, nvals, keys, vals, brbeg, brend, defined)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine inrt_setpermission(global, val, perm)
subroutine inrt_readdrag(regions)