58 TYPE(t_region
),
POINTER :: regions(:)
59 INTEGER,
INTENT(IN) ::
brbeg,brend,iptype
65 INTEGER,
PARAMETER :: nstrkeys_max = 5
66 INTEGER,
PARAMETER :: nkeys_max = 20
68 CHARACTER(CHRLEN) :: rcsidentstring
69 CHARACTER(20) :: strkeys(nstrkeys_max),keys(nkeys_max)
70 CHARACTER(CHRLEN) :: strvals(nstrkeys_max)
72 INTEGER :: nkeys,nstrkeys,nptypesused,errorflag
73 INTEGER :: istrkeymaterial
74 INTEGER :: ikeyused,ikeydiam,ikeypuff,ikeyinitc
75 INTEGER :: ikeyschm,ikeyk2,ikeyinvk4,ikeysmoocf
76 INTEGER :: ikeynegreport,ikeyclipmodel,ikeymethodv
78 LOGICAL :: strdefined(nstrkeys_max),defined(nkeys_max)
80 REAL(RFREAL) :: vals(nkeys_max)
88 '$RCSfile: PEUL_ReadConPartPtypeSection.F90,v $ $Revision: 1.3 $'
90 global => regions(1)%global
93 'PEUL_ReadConPartPtypeSection.F90' )
102 IF (nstrkeys > nstrkeys_max) &
103 CALL
errorstop( global,err_exceeds_decl_mem,__line__ )
105 strkeys(istrkeymaterial) =
'MATERIAL'
122 IF (nkeys > nkeys_max) CALL
errorstop( global,err_exceeds_decl_mem,__line__ )
124 keys(ikeyused) =
'USED'
125 keys(ikeydiam) =
'DIAM'
126 keys(ikeypuff) =
'PUFF'
127 keys(ikeyinitc) =
'INITC'
128 keys(ikeyschm) =
'SCHM'
130 keys(ikeyinvk4) =
'1/K4'
131 keys(ikeysmoocf) =
'SMOOCF'
132 keys(ikeynegreport) =
'NEGREPORT'
133 keys(ikeyclipmodel) =
'CLIPMODEL'
134 keys(ikeymethodv) =
'METH_VEL'
141 vals,strvals,defined,strdefined )
145 IF (defined(ikeyused)) &
146 WRITE(stdout,*)
'### WARNING: key meaningful only for CONPART input, ', &
147 'not CONPART_PTYPE: ', keys(ikeyused)
149 IF (defined(ikeysmoocf)) &
150 WRITE(stdout,*)
'### WARNING: key meaningful only for CONPART input, ', &
151 'not CONPART_PTYPE: ', keys(ikeysmoocf)
153 DO ireg =
brbeg,brend
155 IF (regions(ireg)%peulInput%readStatus == -1)
THEN
156 CALL
errorstop( global,err_peul_ptype,__line__ )
159 IF (regions(ireg)%peulInput%readStatus == 0) cycle
163 ptype => regions(ireg)%peulInput%ptypes(iptype)
165 IF (strdefined(istrkeymaterial)) &
168 IF (defined(ikeydiam)) ptype%diam = vals(ikeydiam)
169 IF (defined(ikeypuff)) ptype%puff = vals(ikeypuff)
170 IF (defined(ikeyinitc)) ptype%initc = vals(ikeyinitc)
171 IF (defined(ikeyschm)) ptype%Sc = vals(ikeyschm)
172 IF (defined(ikeyk2)) ptype%vis2 = vals(ikeyk2)
173 IF (defined(ikeyinvk4)) ptype%vis4 = vals(ikeyinvk4)
175 IF (defined(ikeynegreport)) ptype%negReport = nint(vals(ikeynegreport))
176 IF (defined(ikeyclipmodel)) ptype%clipModel = nint(vals(ikeyclipmodel))
178 IF (defined(ikeynegreport))
THEN
179 SELECT CASE (nint(vals(ikeynegreport)))
181 ptype%negReport = peul_neg_report_none
183 ptype%negReport = peul_neg_report_used
185 CALL
errorstop( global,err_peul_badval,__line__ )
189 IF (defined(ikeyclipmodel))
THEN
190 SELECT CASE (nint(vals(ikeyclipmodel)))
192 ptype%clipModel = peul_clip_model_none
194 ptype%clipModel = peul_clip_model_used
196 CALL
errorstop( global,err_peul_badval,__line__ )
200 IF (defined(ikeymethodv))
THEN
201 SELECT CASE (nint(vals(ikeymethodv)))
203 ptype%methodV = peul_methv_fluidvel
205 ptype%methodV = peul_methv_eqeul
207 CALL
errorstop( global,err_peul_badval,__line__ )
subroutine readbothsection(global, fileID, nvals, nStrVals, keys, strKeys, vals, strVals, defined, strDefined)
subroutine inrt_setmaterial(global, material, name)
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 errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine peul_readconpartptypesection(regions, brbeg, brend, iPtype)