70 CHARACTER(CHRLEN) :: RCSIdentString = &
71 '$RCSfile: RFLU_ModDeallocateMemory.F90,v $ $Revision: 1.11 $'
110 TYPE(t_region
),
POINTER :: pregion
116 INTEGER :: errorflag,ipatch
117 TYPE(t_grid),
POINTER :: pgrid
119 TYPE(t_patch),
POINTER :: ppatch
126 global => pregion%global
129 'RFLU_ModDeallocateMemory.F90')
135 pgrid => pregion%grid
136 pmixtinput => pregion%mixtInput
146 IF ( pmixtinput%moveGrid .EQV. .true. )
THEN
152 DEALLOCATE(pgrid%gs,stat=errorflag)
153 global%error = errorflag
154 IF ( global%error /= err_none )
THEN
155 CALL
errorstop(global,err_deallocate,__line__,
'pGrid%gs')
162 IF ( pgrid%nPatches > 0 )
THEN
163 DO ipatch = 1,pgrid%nPatches
164 ppatch => pregion%patches(ipatch)
166 DEALLOCATE(ppatch%gs,stat=errorflag)
167 global%error = errorflag
168 IF ( global%error /= err_none )
THEN
169 CALL
errorstop(global,err_deallocate,__line__,
'pPatch%gs')
184 DEALLOCATE(pgrid%gs,stat=errorflag)
185 global%error = errorflag
186 IF ( global%error /= err_none )
THEN
187 CALL
errorstop(global,err_deallocate,__line__,
'pGrid%gs')
194 IF ( pgrid%nPatches > 0 )
THEN
195 DO ipatch = 1,pgrid%nPatches
196 ppatch => pregion%patches(ipatch)
198 DEALLOCATE(ppatch%gs,stat=errorflag)
199 global%error = errorflag
200 IF ( global%error /= err_none )
THEN
201 CALL
errorstop(global,err_deallocate,__line__,
'pPatch%gs')
247 TYPE(t_region
),
POINTER :: pregion
253 CHARACTER(CHRLEN) :: rcsidentstring
260 global => pregion%global
263 'RFLU_ModDeallocateMemory.F90')
314 TYPE(t_region
),
POINTER :: pregion
320 CHARACTER(CHRLEN) :: rcsidentstring
323 TYPE(t_grid),
POINTER :: pgrid
329 global => pregion%global
332 'RFLU_ModDeallocateMemory.F90')
338 pgrid => pregion%grid
344 DEALLOCATE(pregion%mixt%cv,stat=errorflag)
345 global%error = errorflag
346 IF (global%error /= err_none)
THEN
347 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%cv')
350 DEALLOCATE(pregion%mixt%cvInfo,stat=errorflag)
351 global%error = errorflag
352 IF (global%error /= err_none)
THEN
353 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%cvInfo')
396 TYPE(t_region
),
POINTER :: pregion
402 CHARACTER(CHRLEN) :: rcsidentstring
410 global => pregion%global
413 'RFLU_ModDeallocateMemory.F90')
419 DEALLOCATE(pregion%mixt%dv,stat=errorflag)
420 global%error = errorflag
421 IF (global%error /= err_none)
THEN
422 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%dv')
465 TYPE(t_region
),
POINTER :: pregion
478 global => pregion%global
481 'RFLU_ModDeallocateMemory.F90')
487 DEALLOCATE(pregion%mixt%gv,stat=errorflag)
488 global%error = errorflag
489 IF (global%error /= err_none)
THEN
490 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%gv')
532 TYPE(t_region
),
POINTER :: pregion
546 global => pregion%global
549 'RFLU_ModDeallocateMemory.F90')
555 pmixtinput => pregion%mixtInput
561 IF ( pmixtinput%computeTv .EQV. .true. )
THEN
562 DEALLOCATE(pregion%mixt%tv,stat=errorflag)
563 global%error = errorflag
564 IF (global%error /= err_none)
THEN
565 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%tv')
611 TYPE(t_region
),
POINTER :: pregion
617 INTEGER :: errorflag,ipatch,nbfaces,nbfacestot
618 TYPE(t_grid),
POINTER :: pgrid,pgridold,pgridold2
620 TYPE(t_patch),
POINTER :: ppatch
627 global => pregion%global
630 'RFLU_ModDeallocateMemory.F90')
636 pgrid => pregion%grid
637 pgridold => pregion%gridOld
638 pgridold2 => pregion%gridOld2
639 pmixtinput => pregion%mixtInput
649 DEALLOCATE(pregion%mixt%cvOld,stat=errorflag)
650 global%error = errorflag
651 IF (global%error /= err_none)
THEN
652 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%cvOld')
655 IF ( global%solverType == solv_implicit_nk )
THEN
656 DEALLOCATE(pregion%mixt%cvOld1,stat=errorflag)
657 global%error = errorflag
658 IF (global%error /= err_none)
THEN
659 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%cvOld1')
662 DEALLOCATE(pregion%mixt%cvOld2,stat=errorflag)
663 global%error = errorflag
664 IF (global%error /= err_none)
THEN
665 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%cvOld2')
673 DEALLOCATE(pregion%dt,stat=errorflag)
674 global%error = errorflag
675 IF (global%error /= err_none)
THEN
676 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%dt')
683 DEALLOCATE(pregion%mixt%rhs,stat=errorflag)
684 global%error = errorflag
685 IF (global%error /= err_none)
THEN
686 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%rhs')
689 DEALLOCATE(pregion%mixt%diss,stat=errorflag)
690 global%error = errorflag
691 IF (global%error /= err_none)
THEN
692 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%diss')
695 IF ( global%flowType == flow_unsteady )
THEN
696 DEALLOCATE(pregion%mixt%rhsSum,stat=errorflag)
697 global%error = errorflag
698 IF (global%error /= err_none)
THEN
699 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%rhsSum')
711 IF ( (pmixtinput%spaceDiscr == discr_upw_roe ) .OR. &
712 (pmixtinput%spaceDiscr == discr_upw_hllc ) .OR. &
713 (pmixtinput%spaceDiscr == discr_upw_ausmplus) )
THEN
714 IF ( pmixtinput%spaceOrder > 1 )
THEN
715 DEALLOCATE(pregion%mixt%gradCell,stat=errorflag)
716 global%error = errorflag
717 IF (global%error /= err_none)
THEN
718 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%gradCell')
721 ELSE IF ( pmixtinput%spaceDiscr == discr_opt_les )
THEN
722 DEALLOCATE(pregion%mixt%gradCell,stat=errorflag)
723 global%error = errorflag
724 IF (global%error /= err_none)
THEN
725 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%gradCell')
733 IF ( pmixtinput%flowModel == flow_navst )
THEN
734 DEALLOCATE(pregion%mixt%gradFace,stat=errorflag)
735 global%error = errorflag
736 IF ( global%error /= err_none )
THEN
737 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%gradFace')
741 IF ( pgrid%nPatches > 0 )
THEN
742 DO ipatch = 1,pregion%grid%nPatches
743 ppatch => pregion%patches(ipatch)
746 DEALLOCATE(ppatch%mixt%gradFace,stat=errorflag)
747 global%error = errorflag
748 IF ( global%error /= err_none )
THEN
749 CALL
errorstop(global,err_deallocate,__line__,
'pPatch%mixt%gradFace')
761 IF ( pmixtinput%moveGrid .EQV. .true. )
THEN
767 DEALLOCATE(pgrid%rhs,stat=errorflag)
768 global%error = errorflag
769 IF ( global%error /= err_none )
THEN
770 CALL
errorstop(global,err_deallocate,__line__,
'pGrid%rhs')
777 IF ( pmixtinput%moveGridType /= movegrid_type_xyz )
THEN
778 DEALLOCATE(pgrid%disp,stat=errorflag)
779 global%error = errorflag
780 IF ( global%error /= err_none )
THEN
781 CALL
errorstop(global,err_deallocate,__line__,
'pGrid%disp')
789 DEALLOCATE(pgridold%xyz,stat=errorflag)
790 global%error = errorflag
791 IF ( global%error /= err_none )
THEN
792 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%gridOld%xyz')
795 IF ( global%solverType == solv_implicit_nk )
THEN
796 DEALLOCATE(pgridold2%xyz,stat=errorflag)
797 global%error = errorflag
798 IF ( global%error /= err_none )
THEN
799 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%gridOld2%xyz')
807 DEALLOCATE(pgridold%vol,stat=errorflag)
808 global%error = errorflag
809 IF ( global%error /= err_none )
THEN
810 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%gridOld%vol')
813 IF ( global%solverType == solv_implicit_nk )
THEN
814 DEALLOCATE(pgridold2%vol,stat=errorflag)
815 global%error = errorflag
816 IF ( global%error /= err_none )
THEN
817 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%gridOld2%vol')
828 IF ( pgrid%nPatches > 0 )
THEN
829 DO ipatch = 1,pgrid%nPatches
830 ppatch => pregion%patches(ipatch)
832 DEALLOCATE(ppatch%dXyz,stat=errorflag)
833 global%error = errorflag
834 IF ( global%error /= err_none )
THEN
835 CALL
errorstop(global,err_deallocate,__line__,
'pPatch%dXyz')
848 IF ( (global%flowType == flow_unsteady) .AND. &
849 (global%doStat == active) )
THEN
850 DEALLOCATE(pregion%mixt%tav,stat=errorflag)
851 global%error = errorflag
852 IF ( global%error /= err_none )
THEN
853 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%tav')
862 IF ( pmixtinput%spaceDiscr == discr_opt_les )
THEN
870 DEALLOCATE(pregion%mixt%sd,stat=errorflag)
871 global%error = errorflag
872 IF ( global%error /= err_none )
THEN
873 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%sd')
916 TYPE(t_region
),
POINTER :: pregion
922 INTEGER :: errorflag,ipatch
923 TYPE(t_grid),
POINTER :: pgrid
924 TYPE(t_patch),
POINTER :: ppatch
931 global => pregion%global
934 'RFLU_ModDeallocateMemory.F90')
940 pgrid => pregion%grid
950 DEALLOCATE(pregion%mixt%mfMixt,stat=errorflag)
951 global%error = errorflag
952 IF ( global%error /= err_none )
THEN
953 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%mfMixt')
956 IF ( pregion%grid%nPatches > 0 )
THEN
957 DO ipatch = 1,pregion%grid%nPatches
958 ppatch => pregion%patches(ipatch)
960 DEALLOCATE(ppatch%mfMixt,stat=errorflag)
961 global%error = errorflag
962 IF ( global%error /= err_none )
THEN
963 CALL
errorstop(global,err_deallocate,__line__,
'pPatch%mfMixt')
1008 TYPE(t_region
),
POINTER :: pregion
1014 INTEGER :: errorflag,ipatch
1015 TYPE(t_grid),
POINTER :: pgrid
1016 TYPE(t_patch),
POINTER :: ppatch
1023 global => pregion%global
1026 'RFLU_ModDeallocateMemory.F90')
1032 pgrid => pregion%grid
1042 DEALLOCATE(pregion%mixt%vfMixt,stat=errorflag)
1043 global%error = errorflag
1044 IF ( global%error /= err_none )
THEN
1045 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%mixt%vfMixt')
1048 IF ( pregion%grid%nPatches > 0 )
THEN
1049 DO ipatch = 1,pregion%grid%nPatches
1050 ppatch => pregion%patches(ipatch)
1052 DEALLOCATE(ppatch%vfMixt,stat=errorflag)
1053 global%error = errorflag
1054 IF ( global%error /= err_none )
THEN
1055 CALL
errorstop(global,err_deallocate,__line__,
'pPatch%vfMixt')
subroutine, public rflu_deallocatememorytstep(pRegion)
subroutine, public rflu_deallocatememorysol(pRegion)
subroutine, public rflu_deallocatememorysolgv(pRegion)
subroutine, public rflu_deallocatememorygspeeds(pRegion)
LOGICAL function rflu_decideneedbgradface(pRegion, pPatch)
subroutine registerfunction(global, funName, fileName)
subroutine, public rflu_deallocatememorytstep_i(pRegion)
subroutine, public rflu_deallocatememorysolcv(pRegion)
subroutine, public rflu_deallocatememorysoldv(pRegion)
subroutine, public rflu_deallocatememorytstep_c(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine, public rflu_deallocatememorysoltv(pRegion)
subroutine, public rflu_destroystencilsweightsoles(pRegion)