68 TYPE(t_region
),
POINTER :: pregion
74 CHARACTER(CHRLEN) :: rcsidentstring
75 INTEGER :: errorflag,icont,ipatch,itile,ivar,ncont,ncv,ndv,ntiles
76 TYPE(t_grid),
POINTER :: pgrid
78 TYPE(t_patch),
POINTER :: ppatch
85 rcsidentstring =
'$RCSfile: PLAG_RFLU_AllocMemSolTile.F90,v $ $Revision: 1.6 $'
87 global => pregion%global
90 'PLAG_RFLU_AllocMemSolTile.F90')
98 ncont = pregion%plagInput%nCont
104 DO ipatch = 1,pgrid%nPatches
105 ppatch => pregion%patches(ipatch)
107 IF ( (ppatch%bcType >= bc_injection .AND. ppatch%bcType <= bc_injection + bc_range) .OR. &
108 (ppatch%bcType >= bc_inflow .AND. ppatch%bcType <= bc_inflow + bc_range) )
THEN
109 ptileplag => ppatch%tilePlag
111 ppatch%tilePlag%nCv = cv_tile_last + ncont
112 ppatch%tilePlag%nDv = dv_tile_last
117 ntiles = ppatch%nBFaces
119 ALLOCATE(ptileplag%cv(ncv,ntiles),stat=errorflag)
120 global%error = errorflag
121 IF (global%error /= err_none)
THEN
122 CALL
errorstop(global, err_allocate,__line__,
'pTilePlag%cv')
125 ALLOCATE(ptileplag%dv(ndv,ntiles),stat=errorflag)
126 global%error = errorflag
127 IF (global%error /= err_none)
THEN
128 CALL
errorstop(global, err_allocate,__line__,
'pTilePlag%dv')
131 ALLOCATE(ptileplag%cvTileMass(ncont),stat=errorflag)
132 global%error = errorflag
133 IF (global%error /= err_none)
THEN
134 CALL
errorstop(global, err_allocate,__line__,
'pTilePlag%cvTileMass')
138 ptileplag%cvTileMass(icont) = cv_tile_last + icont
147 DO ipatch = 1,pgrid%nPatches
148 ppatch => pregion%patches(ipatch)
150 IF ( (ppatch%bcType >= bc_injection .AND. ppatch%bcType <= bc_injection + bc_range) .OR. &
151 (ppatch%bcType >= bc_inflow .AND. ppatch%bcType <= bc_inflow + bc_range) )
THEN
152 ptileplag => ppatch%tilePlag
157 ntiles = ppatch%nBFaces
161 ptileplag%cv(ivar,itile) = 0.0_rfreal
165 ptileplag%dv(ivar,itile) = 0.0_rfreal
subroutine registerfunction(global, funName, fileName)
subroutine plag_rflu_allocmemsoltile(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)