58 TYPE(t_region
),
POINTER :: regions(:)
64 CHARACTER(CHRLEN) :: rcsidentstring
65 CHARACTER(15) :: keysncont
66 CHARACTER(CHRLEN),
POINTER :: strvalsncont(:)
68 INTEGER ::
brbeg, brend, errorflag, ncols, ncont, nregions, nrows
70 LOGICAL :: definedncont
72 REAL(RFREAL),
POINTER :: valsncont(:,:)
79 rcsidentstring =
'$RCSfile: PLAG_ReadDisPartnContSection.F90,v $ $Revision: 1.5 $'
81 global => regions(1)%global
84 'PLAG_ReadDisPartnContSection.F90' )
88 definedncont = .false.
93 nregions = global%nRegions
100 brbeg = lbound(regions,1)
101 brend = ubound(regions,1)
108 valsncont,strvalsncont,definedncont )
110 IF (definedncont)
THEN
111 regions(
brbeg:brend)%plagInput%nCont = nrows
113 DO ireg =
brbeg,brend
114 ALLOCATE( regions(ireg)%plagInput%molw(nrows),stat=errorflag )
115 global%error = errorflag
116 IF (global%error /= err_none)
THEN
117 CALL
errorstop( global, err_allocate,__line__ ,
'regions%plagInput%molw' )
120 ALLOCATE( regions(ireg)%plagInput%dens(nrows),stat=errorflag )
121 global%error = errorflag
122 IF (global%error /= err_none)
THEN
123 CALL
errorstop( global, err_allocate,__line__ ,
'regions%plagInput%dens' )
126 ALLOCATE( regions(ireg)%plagInput%spht(nrows),stat=errorflag )
127 global%error = errorflag
128 IF (global%error /= err_none)
THEN
129 CALL
errorstop( global, err_allocate,__line__ ,
'regions%plagInput%spht' )
132 ALLOCATE( regions(ireg)%plagInput%surftens(nrows),stat=errorflag )
133 global%error = errorflag
134 IF (global%error /= err_none)
THEN
135 CALL
errorstop( global, err_allocate,__line__ ,
'regions%plagInput%surftens' )
138 ALLOCATE( regions(ireg)%plagInput%injcMassFluxRatio(nrows),stat=errorflag )
139 global%error = errorflag
140 IF (global%error /= err_none)
THEN
141 CALL
errorstop( global, err_allocate,__line__ , &
142 'regions%plagInput%injcMassFluxRatio' )
145 ALLOCATE( regions(ireg)%plagInput%materialIndex(nrows),stat=errorflag )
146 global%error = errorflag
147 IF (global%error /= err_none)
THEN
148 CALL
errorstop( global, err_allocate,__line__ , &
149 'regions%plagInput%imaterialIndex' )
152 ALLOCATE( regions(ireg)%plagInput%materialName(nrows),stat=errorflag )
153 global%error = errorflag
154 IF (global%error /= err_none)
THEN
155 CALL
errorstop( global, err_allocate,__line__ , &
156 'regions%plagInput%materialName' )
159 ALLOCATE( regions(ireg)%plagInput%injcTemp(nrows),stat=errorflag )
160 global%error = errorflag
161 IF (global%error /= err_none)
THEN
162 CALL
errorstop( global, err_allocate,__line__ , &
163 'regions%plagInput%injcTemp' )
169 ncont = regions(ireg)%plagInput%nCont
173 regions(ireg)%plagInput%materialIndex(ival) = pmaterial%index
174 regions(ireg)%plagInput%materialName(ival) = pmaterial%name
176 regions(ireg)%plagInput%molw(ival) = pmaterial%molw
177 regions(ireg)%plagInput%dens(ival) = pmaterial%dens
178 regions(ireg)%plagInput%spht(ival) = pmaterial%spht
179 regions(ireg)%plagInput%surftens(ival) = pmaterial%surftens
180 regions(ireg)%plagInput%injcMassFluxRatio(ival) = abs(valsncont(ival,1))
181 regions(ireg)%plagInput%injcTemp(ival) = abs(valsncont(ival,2))
186 CALL
errorstop( global, err_missing_value,__line__)
191 DEALLOCATE( strvalsncont, stat=errorflag )
192 global%error = errorflag
193 IF (global%error /= err_none)
THEN
194 CALL
errorstop( global, err_deallocate,__line__ ,
'strValsnCont' )
197 DEALLOCATE( valsncont, stat=errorflag )
198 global%error = errorflag
199 IF (global%error /= err_none)
THEN
200 CALL
errorstop( global, err_deallocate,__line__ ,
'valsnCont' )
subroutine inrt_setmaterial(global, material, name)
subroutine registerfunction(global, funName, fileName)
subroutine readlistsection(global, fileID, key, nCols, nRows, vals, 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 SUBROUTINE brbeg
subroutine readprefixedlistsection(global, fileID, key, nCols, nRows, vals, strVals, defined)
subroutine plag_readdispartncontsection(regions)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)