70 TYPE(t_region
) :: region
73 INTEGER :: icont, ilev
76 CHARACTER(CHRLEN) :: rcsidentstring
78 INTEGER :: errorflag, ibn,
idnbeg,
idnend, ien, inoff, ijnoff, &
80 ncv, ndv, nev, npclsmax, ntv, maxdisedges
82 TYPE(t_level
),
POINTER :: plevel
83 TYPE(t_plag),
POINTER :: pplag
88 rcsidentstring =
'$RCSfile: PLAG_AllocateMemory.F90,v $ $Revision: 1.5 $'
90 global => region%global
93 'PLAG_AllocateMemory.F90' )
95 IF ( global%myProcid == masterproc .AND. &
96 global%verbLevel > verbose_none )
THEN
97 WRITE(stdout,
'(A,3X,A)') solver_name,
'Allocating memory for PLAG...'
102 maxdisedges = region%inrtInput%maxDisEdges
106 DO ilev=1,region%nGridLevels
108 plevel => region%levels(ilev)
109 pplag => region%levels(ilev)%plag
113 npclsmax = region%plagInput%nPclsMax
114 ncont = region%plagInput%nCont
126 IF ( global%myProcid == masterproc .AND. &
127 global%verbLevel > verbose_none )
THEN
128 WRITE(stdout,1015)
' nPclsMax',npclsmax
129 WRITE(stdout,1010)
' nCont ',ncont
130 WRITE(stdout,1010)
' nAiv ',naiv
131 WRITE(stdout,1010)
' nArv ',narv
132 WRITE(stdout,1010)
' nCv ',ncv
133 WRITE(stdout,1010)
' nDv ',ndv
134 WRITE(stdout,1010)
' nTv ',ntv
135 WRITE(stdout,1010)
' nEv ',nev
140 ALLOCATE( pplag%aiv(naiv,npclsmax),stat=errorflag )
141 global%error = errorflag
142 IF (global%error /= err_none)
THEN
143 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%aiv' )
146 ALLOCATE( pplag%arv(narv,npclsmax),stat=errorflag )
147 global%error = errorflag
148 IF (global%error /= err_none)
THEN
149 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%arv' )
152 ALLOCATE( pplag%cv (ncv,npclsmax),stat=errorflag )
153 global%error = errorflag
154 IF (global%error /= err_none)
THEN
155 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%cv' )
158 ALLOCATE( pplag%dv (ndv,npclsmax),stat=errorflag )
159 global%error = errorflag
160 IF (global%error /= err_none)
THEN
161 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%dv' )
164 ALLOCATE( pplag%tv (ntv,npclsmax),stat=errorflag )
165 global%error = errorflag
166 IF (global%error /= err_none)
THEN
167 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%tv' )
170 ALLOCATE( pplag%rhs (ncv,npclsmax),stat=errorflag )
171 global%error = errorflag
172 IF (global%error /= err_none)
THEN
173 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%rhs' )
176 ALLOCATE( pplag%rhsSum(ncv,npclsmax),stat=errorflag )
177 global%error = errorflag
178 IF (global%error /= err_none)
THEN
179 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%rhsSum' )
182 ALLOCATE( pplag%aivOld(naiv,npclsmax),stat=errorflag )
183 global%error = errorflag
184 IF (global%error /= err_none)
THEN
185 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%aivOld' )
188 ALLOCATE( pplag%arvOld(narv,npclsmax),stat=errorflag )
189 global%error = errorflag
190 IF (global%error /= err_none)
THEN
191 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%arvOld' )
194 ALLOCATE( pplag%cvOld (ncv,npclsmax),stat=errorflag )
195 global%error = errorflag
196 IF (global%error /= err_none)
THEN
197 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%cvOld' )
202 ALLOCATE( pplag%cvPlagMass(ncont),stat=errorflag )
203 global%error = errorflag
204 IF (global%error /= err_none)
THEN
205 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%cvPlagMass' )
208 ALLOCATE( pplag%dvPlagVolu(ncont),stat=errorflag )
209 global%error = errorflag
210 IF (global%error /= err_none)
THEN
211 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%dvPlagVolu' )
215 pplag%cvPlagMass(icont) = cv_plag_last +icont
216 pplag%dvPlagVolu(icont) = dv_plag_last +icont
230 ALLOCATE( pplag%fc(zcoord,kcoord,ibn:ien),stat=errorflag )
231 global%error = errorflag
232 IF (global%error /= err_none)
THEN
233 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%fc' )
238 ALLOCATE( pplag%si(zcoord,ibn:ien),stat=errorflag )
239 global%error = errorflag
240 IF (global%error /= err_none)
THEN
241 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%si' )
244 ALLOCATE( pplag%sj(zcoord,ibn:ien),stat=errorflag )
245 global%error = errorflag
246 IF (global%error /= err_none)
THEN
247 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%sj' )
250 ALLOCATE( pplag%sk(zcoord,ibn:ien),stat=errorflag )
251 global%error = errorflag
252 IF (global%error /= err_none)
THEN
253 CALL
errorstop( global, err_allocate,__line__ ,
'pPlag%sk' )
260 IF ( maxdisedges > 0 )
THEN
261 ALLOCATE( pplag%inrtSources(maxdisedges,npclsmax), stat=errorflag )
263 global%error = errorflag
264 IF (global%error /= err_none)
THEN
265 CALL
errorstop( global,err_allocate,__line__,
'pPlag%inrtSources' )
269 nullify( pplag%inrtSources )
276 IF ( ( global%flowType == flow_unsteady ) .AND. &
277 ( global%doStat == active ) )
THEN
301 1010
FORMAT(
a,
' = ',i2)
302 1015
FORMAT(
a,
' = ',i7)
subroutine, public plag_createstat(pRegion, pPlag)
subroutine registerfunction(global, funName, fileName)
subroutine plag_allocatememory(region)
**********************************************************************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 jdnbeg
**********************************************************************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 idnend
subroutine rflo_getnodeoffset(region, iLev, iNodeOffset, ijNodeOffset)
**********************************************************************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 jdnend
subroutine plag_injctileinitialize(region)
**********************************************************************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 idnbeg
subroutine plag_allocatememorytile(region)
subroutine rflo_getdimensdummynodes(region, iLev, idnbeg, idnend, jdnbeg, jdnend, kdnbeg, kdnend)
subroutine plag_initmemory(region)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
**********************************************************************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 kdnbeg
subroutine, public plag_createeulerianfield(pRegion, pPlag)