68 TYPE(t_region
),
POINTER :: pregion
74 CHARACTER(CHRLEN) :: rcsidentstring
75 INTEGER :: errorflag, ipatch
77 TYPE(t_grid),
POINTER :: pgrid
79 TYPE(t_patch),
POINTER :: ppatch
85 rcsidentstring =
'$RCSfile: SPEC_RFLU_DeallocateMemoryTStep.F90,v $ $Revision: 1.6 $'
87 global => pregion%global
90 'SPEC_RFLU_DeallocateMemoryTStep.F90')
97 pmixtinput => pregion%mixtInput
107 DEALLOCATE(pregion%spec%cvOld,stat=errorflag)
108 global%error = errorflag
109 IF ( global%error /= err_none )
THEN
110 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%spec%cvOld')
117 DEALLOCATE(pregion%spec%rhs,stat=errorflag)
118 global%error = errorflag
119 IF ( global%error /= err_none )
THEN
120 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%spec%rhs')
123 DEALLOCATE(pregion%spec%diss,stat=errorflag)
124 global%error = errorflag
125 IF ( global%error /= err_none )
THEN
126 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%spec%diss')
129 IF ( global%flowType == flow_unsteady )
THEN
130 DEALLOCATE(pregion%spec%rhsSum,stat=errorflag)
131 global%error = errorflag
132 IF ( global%error /= err_none )
THEN
133 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%spec%rhsSum')
145 IF ( pmixtinput%spaceOrder > 1 )
THEN
146 DEALLOCATE(pregion%spec%gradCell,stat=errorflag)
147 global%error = errorflag
148 IF ( global%error /= err_none )
THEN
149 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%spec%gradCell')
157 IF ( pmixtinput%flowModel == flow_navst )
THEN
158 DEALLOCATE(pregion%spec%gradFace,stat=errorflag)
159 global%error = errorflag
160 IF ( global%error /= err_none )
THEN
161 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%spec%gradFace')
165 IF ( pgrid%nPatches > 0 )
THEN
166 DO ipatch = 1,pregion%grid%nPatches
167 ppatch => pregion%patches(ipatch)
170 DEALLOCATE(ppatch%spec%gradFace,stat=errorflag)
171 global%error = errorflag
172 IF ( global%error /= err_none )
THEN
173 CALL
errorstop(global,err_deallocate,__line__,
'pPatch%spec%gradFace')
LOGICAL function rflu_decideneedbgradface(pRegion, pPatch)
subroutine registerfunction(global, funName, fileName)
subroutine spec_rflu_deallocatememorytstep(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)