68 TYPE(t_region
),
POINTER :: pregion
74 CHARACTER(CHRLEN) :: rcsidentstring
75 INTEGER :: errorflag,ipatch
76 TYPE(t_grid),
POINTER :: pgrid
78 TYPE(t_patch),
POINTER :: ppatch
85 rcsidentstring =
'$RCSfile: PLAG_RFLU_DeallocMemSolTile.F90,v $ $Revision: 1.5 $'
87 global => pregion%global
90 'PLAG_RFLU_DeallocMemSolTile.F90')
102 DO ipatch = 1,pgrid%nPatches
103 ppatch => pregion%patches(ipatch)
105 IF ( (ppatch%bcType >= bc_injection .AND. ppatch%bcType <= bc_injection + bc_range) .OR. &
106 (ppatch%bcType >= bc_inflow .AND. ppatch%bcType <= bc_inflow + bc_range) )
THEN
107 ptileplag => ppatch%tilePlag
109 DEALLOCATE(ptileplag%cv,stat=errorflag)
110 global%error = errorflag
111 IF (global%error /= err_none)
THEN
112 CALL
errorstop(global, err_deallocate,__line__,
'pTilePlag%cv')
115 DEALLOCATE(ptileplag%dv,stat=errorflag)
116 global%error = errorflag
117 IF (global%error /= err_none)
THEN
118 CALL
errorstop(global, err_deallocate,__line__,
'pTilePlag%dv')
121 DEALLOCATE(ptileplag%cvTileMass,stat=errorflag)
122 global%error = errorflag
123 IF (global%error /= err_none)
THEN
124 CALL
errorstop(global, err_deallocate,__line__,
'pTilePlag%cvTileMass')
subroutine registerfunction(global, funName, fileName)
subroutine plag_rflu_deallocmemsoltile(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)