67 TYPE(t_region
),
POINTER :: pregion
73 CHARACTER(CHRLEN) :: rcsidentstring
74 INTEGER :: errorflag,ipatch,itile,ivar,ncv,ntiles
75 TYPE(t_grid),
POINTER :: pgrid
77 TYPE(t_patch),
POINTER :: ppatch
84 rcsidentstring =
'$RCSfile: PLAG_RFLU_AllocMemTStepTile.F90,v $ $Revision: 1.7 $'
86 global => pregion%global
89 'PLAG_RFLU_AllocMemTStepTile.F90')
105 DO ipatch = 1,pgrid%nPatches
106 ppatch => pregion%patches(ipatch)
113 IF ( (ppatch%bcType >= bc_injection .AND. ppatch%bcType <= bc_injection + bc_range) .OR. &
114 (ppatch%bcType >= bc_inflow .AND. ppatch%bcType <= bc_inflow + bc_range) )
THEN
115 ptileplag => ppatch%tilePlag
119 ntiles = ppatch%nBFaces
121 ALLOCATE(ptileplag%cvOld(ncv,ntiles),stat=errorflag)
122 global%error = errorflag
123 IF (global%error /= err_none)
THEN
124 CALL
errorstop(global, err_allocate,__line__,
'pTilePlag%cvOld')
127 ALLOCATE(ptileplag%rhs(ncv,ntiles),stat=errorflag)
128 global%error = errorflag
129 IF (global%error /= err_none)
THEN
130 CALL
errorstop(global,err_allocate,__line__,
'pTilePlag%rhs')
133 ALLOCATE(ptileplag%rhsSum(ncv,ntiles),stat=errorflag)
134 global%error = errorflag
135 IF (global%error /= err_none)
THEN
136 CALL
errorstop(global,err_allocate,__line__,
'pTilePlag%rhsSum')
139 ALLOCATE(ptileplag%nPclsInjc(ntiles),stat=errorflag)
140 global%error = errorflag
141 IF (global%error /= err_none)
THEN
142 CALL
errorstop(global,err_allocate,__line__,
'pTilePlag%nPclsInjc')
151 DO ipatch = 1,pgrid%nPatches
152 ppatch => pregion%patches(ipatch)
154 IF ( (ppatch%bcType >= bc_injection .AND. ppatch%bcType <= bc_injection + bc_range) .OR. &
155 (ppatch%bcType >= bc_inflow .AND. ppatch%bcType <= bc_inflow + bc_range) )
THEN
156 ptileplag => ppatch%tilePlag
160 ntiles = ppatch%nBFaces
164 ptileplag%cvOld(ivar,itile) = 0.0_rfreal
165 ptileplag%rhs(ivar,itile) = 0.0_rfreal
166 ptileplag%rhsSum(ivar,itile) = 0.0_rfreal
169 ptileplag%nPclsInjc(itile) = 0
subroutine plag_rflu_allocmemtsteptile(pRegion)
subroutine registerfunction(global, funName, fileName)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)