60 REAL(RFREAL),
PARAMETER :: PLAG_EXPAND_RATIO = 0.90_RFREAL
61 REAL(RFREAL),
PARAMETER :: PLAG_SHRINK_RATIO = 0.25_RFREAL
70 CHARACTER(CHRLEN) :: RCSIdentString = &
71 '$RCSfile: PLAG_ModReallocateMemory.F90,v $ $Revision: 1.9 $'
113 TYPE(t_plag),
POINTER :: pplag,pplagcopy
119 CHARACTER(CHRLEN) :: rcsidentstring
125 rcsidentstring =
'$RCSfile: PLAG_ModReallocateMemory.F90,v $ $Revision: 1.9 $'
128 'PLAG_ModReallocateMemory.F90')
134 pplagcopy%nAiv = pplag%nAiv
135 pplagcopy%nArv = pplag%nArv
136 pplagcopy%nCv = pplag%nCv
137 pplagcopy%nDv = pplag%nDv
138 pplagcopy%nTv = pplag%nTv
139 pplagcopy%nPcls = pplag%nPcls
185 TYPE(t_plag),
POINTER :: pplag,pplagcopy
191 CHARACTER(CHRLEN) :: rcsidentstring
192 INTEGER :: ipcl,ivar,naiv,narv,ncont,ncv,ndv,npcls,ntv
198 rcsidentstring =
'$RCSfile: PLAG_ModReallocateMemory.F90,v $ $Revision: 1.9 $'
201 'PLAG_ModReallocateMemory.F90')
222 pplagcopy%cv(ivar,ipcl) = pplag%cv(ivar,ipcl)
223 pplagcopy%cvOld(ivar,ipcl) = pplag%cvOld(ivar,ipcl)
224 pplagcopy%rhsSum(ivar,ipcl) = pplag%rhsSum(ivar,ipcl)
228 pplagcopy%dv(ivar,ipcl) = pplag%dv(ivar,ipcl)
232 pplagcopy%tv(ivar,ipcl) = pplag%tv(ivar,ipcl)
236 pplagcopy%aiv(ivar,ipcl) = pplag%aiv(ivar,ipcl)
237 pplagcopy%aivOld(ivar,ipcl) = pplag%aivOld(ivar,ipcl)
241 pplagcopy%arv(ivar,ipcl) = pplag%arv(ivar,ipcl)
242 pplagcopy%arvOld(ivar,ipcl) = pplag%arvOld(ivar,ipcl)
289 TYPE(t_region
),
POINTER :: pregion
290 LOGICAL,
INTENT(INOUT) :: pdecidereallocmem
296 CHARACTER(CHRLEN) :: rcsidentstring
298 INTEGER :: errorflag,npcls,npclsmax
300 REAL(RFREAL) :: pclratio
308 rcsidentstring =
'$RCSfile: PLAG_ModReallocateMemory.F90,v $ $Revision: 1.9 $'
310 global => pregion%global
313 'PLAG_ModReallocateMemory.F90')
319 npclsmax = pregion%plag%nPclsMax
320 npcls = pregion%plag%nPcls
322 pdecidereallocmem = .false.
328 pclratio =
REAL(npcls,kind=rfreal)/
REAL(npclsmax,kind=rfreal)
330 IF ( pclratio >= plag_expand_ratio .OR. &
331 ( pclratio <= plag_shrink_ratio .AND. &
332 npclsmax > npcls_tot_min ) ) pdecidereallocmem = .true.
375 TYPE(t_region
),
POINTER :: pregion
381 CHARACTER(CHRLEN) :: rcsidentstring
383 INTEGER :: errorflag,npcls,nplagpclstot
386 TYPE(t_plag),
POINTER :: pplag,pplagtemp
392 rcsidentstring =
'$RCSfile: PLAG_ModReallocateMemory.F90,v $ $Revision: 1.9 $'
394 global => pregion%global
397 'PLAG_ModReallocateMemory.F90')
403 pplag => pregion%plag
404 pplagtemp => pregion%plagTemp
497 TYPE(t_region
),
POINTER :: pregion
503 CHARACTER(CHRLEN) :: rcsidentstring
505 LOGICAL :: pdecidereallocmem
508 TYPE(t_plag),
POINTER :: pplag
514 rcsidentstring =
'$RCSfile: PLAG_ModReallocateMemory.F90,v $ $Revision: 1.9 $'
516 global => pregion%global
519 'PLAG_ModReallocateMemory.F90')
525 pplag => pregion%plag
533 IF ( pdecidereallocmem .EQV. .true. )
THEN
538 WRITE(stdout,
'(A,I2,2X,I10,2X,I10)')
' PLAG_ReallocMem-iReg: nPcls, nPclsMax = ',&
539 pregion%iRegionGlobal,pregion%plag%nPcls,pregion%plag%nPclsMax
subroutine plag_rflu_deallocmemsol(pRegion, pPlag)
subroutine plag_rflu_deallocmemtstep(pRegion, pPlag)
subroutine plag_inrt_deallocmemtstep(pRegion, pPlag)
subroutine plag_copymemory(global, pPlag, pPlagCopy)
subroutine plag_reallocmem(pRegion)
subroutine plag_rflu_allocmemsol(pRegion, pPlag)
subroutine plag_copydimensions(global, pPlag, pPlagCopy)
subroutine registerfunction(global, funName, fileName)
subroutine, public plag_setmaxdimensions(pRegion)
subroutine plag_inrt_allocmemtstep(pRegion, pPlag)
subroutine deregisterfunction(global)
subroutine plag_rflu_allocmemtstep(pRegion, pPlag)
subroutine plag_decidereallocmem(pRegion, pDecideReallocMem)
subroutine, public plag_reallocmemwrapper(pRegion)