54 PUBLIC :: stat_rflu_allocmempost, &
55 stat_rflu_allocmempostvert, &
56 stat_rflu_deallocmempost, &
57 stat_rflu_deallocmempostvert
63 CHARACTER(CHRLEN) :: rcsidentstring = &
64 '$RCSfile: ModStatsPost.F90,v $ $Revision: 1.3 $'
88 SUBROUTINE stat_rflu_allocmempost(pRegion)
100 TYPE(t_region
),
POINTER :: pregion
106 CHARACTER(CHRLEN) :: rcsidentstring
107 INTEGER :: nstat, errorflag
108 TYPE(t_grid),
POINTER :: pgrid
115 global => pregion%global
124 pgrid => pregion%grid
134 nstat = global%mixtNStat
136 ALLOCATE(pregion%mixt%tav(nstat,pgrid%nCellsTot),stat=errorflag)
137 global%error = errorflag
138 IF (global%error /= err_none)
THEN
139 CALL
errorstop(global,err_allocate,__line__,
'pRegion%mixt%tav')
148 nstat = global%turbNStat
150 ALLOCATE(pregion%turb%tav(nstat,pgrid%nCellsTot),stat=errorflag)
151 global%error = errorflag
152 IF (global%error /= err_none)
THEN
153 CALL
errorstop(global,err_allocate,__line__,
'pRegion%turb%tav')
164 END SUBROUTINE stat_rflu_allocmempost
183 SUBROUTINE stat_rflu_deallocmempost(pRegion)
195 TYPE(t_region
),
POINTER :: pregion
201 CHARACTER(CHRLEN) :: rcsidentstring
202 INTEGER :: nstat, errorflag
209 global => pregion%global
226 nstat = global%mixtNStat
228 DEALLOCATE(pregion%mixt%tav,stat=errorflag)
229 global%error = errorflag
230 IF (global%error /= err_none)
THEN
231 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%tav')
240 nstat = global%turbNStat
242 DEALLOCATE(pregion%turb%tav,stat=errorflag)
243 global%error = errorflag
244 IF (global%error /= err_none)
THEN
245 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%turb%tav')
256 END SUBROUTINE stat_rflu_deallocmempost
275 SUBROUTINE stat_rflu_allocmempostvert(pRegion)
287 TYPE(t_region
),
POINTER :: pregion
293 CHARACTER(CHRLEN) :: rcsidentstring
294 INTEGER :: nstat, errorflag
295 TYPE(t_grid),
POINTER :: pgrid
302 global => pregion%global
311 pgrid => pregion%grid
321 nstat = global%mixtNStat
323 ALLOCATE(pregion%mixt%tavVert(nstat,pgrid%nVertTot),stat=errorflag)
324 global%error = errorflag
325 IF (global%error /= err_none)
THEN
326 CALL
errorstop(global,err_allocate,__line__,
'pRegion%mixt%tavVert')
335 nstat = global%turbNStat
337 ALLOCATE(pregion%turb%tavVert(nstat,pgrid%nVertTot),stat=errorflag)
338 global%error = errorflag
339 IF (global%error /= err_none)
THEN
340 CALL
errorstop(global,err_allocate,__line__,
'pRegion%turb%tavVert')
351 END SUBROUTINE stat_rflu_allocmempostvert
370 SUBROUTINE stat_rflu_deallocmempostvert(pRegion)
382 TYPE(t_region
),
POINTER :: pregion
388 CHARACTER(CHRLEN) :: rcsidentstring
389 INTEGER :: nstat, errorflag
396 global => pregion%global
413 nstat = global%mixtNStat
415 DEALLOCATE(pregion%mixt%tavVert,stat=errorflag)
416 global%error = errorflag
417 IF (global%error /= err_none)
THEN
418 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%tavVert')
427 nstat = global%turbNStat
429 DEALLOCATE(pregion%turb%tavVert,stat=errorflag)
430 global%error = errorflag
431 IF (global%error /= err_none)
THEN
432 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%turb%tavVert')
443 END SUBROUTINE stat_rflu_deallocmempostvert
subroutine registerfunction(global, funName, fileName)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)