64 TYPE(t_region
),
POINTER :: regions(:)
67 INTEGER :: ireg,iplag,ipeul,iinrt
70 INTEGER,
PARAMETER :: nkeys_max = 30
71 INTEGER,
PARAMETER :: npeul_max = 10
73 CHARACTER(CHRLEN) :: rcsidentstring
74 CHARACTER(CHRLEN) :: keys(nkeys_max)
76 INTEGER ::
brbeg,brend
77 INTEGER :: nplag,npeul
78 INTEGER :: nfixedkeys,nkeys
79 INTEGER :: ind,indmixt,indplag0,indpeul0
80 INTEGER :: ikey,ikeymixtactv,ikeyplagactv,ikeymixtperm,ikeyplagperm
81 INTEGER :: ikeycomputeaux,ikeytwodaverage
82 INTEGER :: ikeyactv,ikeyperm,ikeypeulactv0,ikeypeulperm0
84 LOGICAL :: defined(nkeys_max)
86 REAL(RFREAL) :: vals(nkeys_max)
94 '$RCSfile: INRT_ReadDefaultSection.F90,v $ $Revision: 1.3 $'
96 global => regions(1)%global
99 'INRT_ReadDefaultSection.F90' )
113 keys(ikeycomputeaux) =
'COMPUTE_AUX'
114 keys(ikeytwodaverage) =
'2D_AVERAGE'
115 keys(ikeymixtactv) =
'MIXT_ACTV'
116 keys(ikeyplagactv) =
'PLAG_ACTV'
117 keys(ikeymixtperm) =
'MIXT_PERM'
118 keys(ikeyplagperm) =
'PLAG_PERM'
120 ikeypeulactv0 = nfixedkeys
121 ikeypeulperm0 = ikeypeulactv0 + npeul_max
133 keys(ikeypeulactv0+ipeul) = trim(keys(ikeypeulactv0+ipeul))//
'_ACTV'
134 keys(ikeypeulperm0+ipeul) = trim(keys(ikeypeulperm0+ipeul))//
'_PERM'
137 nkeys = ikeypeulperm0 + npeul_max
139 IF (nkeys > nkeys_max) CALL
errorstop( global,err_exceeds_decl_mem,__line__ )
147 CALL
readsection( global,if_input,nkeys,keys,vals,defined )
148 brbeg = lbound(regions,1)
149 brend = ubound(regions,1)
154 input => regions(ireg)%inrtInput
156 IF (
input%defaultRead) &
157 CALL
errorstop( global,err_inrt_defread,__line__ )
159 input%defaultRead = .true.
163 IF (npeul > npeul_max) &
164 CALL
errorstop( global,err_exceeds_decl_mem,__line__ )
166 input%computeAux = .true.
168 IF (defined(ikeycomputeaux))
THEN
170 SELECT CASE ( nint(vals(ikeycomputeaux)) )
173 input%computeAux = .false.
176 input%computeAux = .true.
179 CALL
errorstop( global,err_inrt_badswitch,__line__ )
185 input%twoDAverage = 0
187 IF (defined(ikeytwodaverage))
THEN
189 SELECT CASE ( nint(vals(ikeytwodaverage)) )
192 input%twoDAverage = nint(vals(ikeytwodaverage))
195 CALL
errorstop( global,err_inrt_badswitch,__line__ )
203 indmixt =
input%indMixt
204 indplag0 =
input%indPlag0
205 indpeul0 =
input%indPeul0
209 IF (defined(ikeymixtactv)) &
211 input%globActiveness(indmixt))
213 IF (defined(ikeymixtperm)) &
215 input%globPermission(indmixt))
221 ind = indplag0 + iplag
223 IF (defined(ikeyplagactv)) &
225 input%globActiveness(ind))
227 IF (defined(ikeyplagperm)) &
229 input%globPermission(ind))
237 ikeyactv = ikeypeulactv0 + ipeul
238 ikeyperm = ikeypeulperm0 + ipeul
239 ind = indpeul0 + ipeul
241 IF (defined(ikeyactv)) &
243 input%globActiveness(ind))
245 IF (defined(ikeyperm)) &
247 input%globPermission(ind))
253 DO iinrt = 1,inrt_type_total
255 input%inrts(iinrt)%activeness =
input%globActiveness
256 input%inrts(iinrt)%permission =
input%globPermission
subroutine makenumberedkeys(keys, indBegin, string, numBegin, numEnd, numSkip)
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 input(X, NNODE, NDC, NCELL, NFCE, NBPTS, NBFACE, ITYP, NPROP, XBNDY, XFAR, YFAR, ZFAR)
subroutine inrt_setactiveness(global, val, actv)
subroutine inrt_readdefaultsection(regions)
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)