Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
post/RFLU_DeallocMemSolWrapper.F90
Go to the documentation of this file.
1 ! *********************************************************************
2 ! * Rocstar Simulation Suite *
3 ! * Copyright@2015, Illinois Rocstar LLC. All rights reserved. *
4 ! * *
5 ! * Illinois Rocstar LLC *
6 ! * Champaign, IL *
7 ! * www.illinoisrocstar.com *
8 ! * sales@illinoisrocstar.com *
9 ! * *
10 ! * License: See LICENSE file in top level of distribution package or *
11 ! * http://opensource.org/licenses/NCSA *
12 ! *********************************************************************
13 ! *********************************************************************
14 ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
15 ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES *
16 ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
17 ! * NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR *
18 ! * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
19 ! * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
20 ! * Arising FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
21 ! * USE OR OTHER DEALINGS WITH THE SOFTWARE. *
22 ! *********************************************************************
23 ! ******************************************************************************
24 !
25 ! Purpose: Deallocate memory wrapper for rflupost.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! pRegion Region pointer
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 
36 ! ******************************************************************************
37 !
38 ! $Id: RFLU_DeallocMemSolWrapper.F90,v 1.10 2008/12/06 08:45:05 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2004-2005 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE rflu_deallocmemsolwrapper(pRegion)
45 
46  USE moddatatypes
47  USE moderror
48  USE modglobal, ONLY: t_global
49  USE moddatastruct, ONLY: t_region
50  USE modparameters
51  USE modmpi
52 
53 #ifdef PLAG
54  USE modpartlag, ONLY: t_plag
55 #endif
56 
61 
62 #ifdef PLAG
66 #endif
67 
68 #ifdef SPEC
71 #endif
72 
73  IMPLICIT NONE
74 
75 ! ******************************************************************************
76 ! Declarations and definitions
77 ! ******************************************************************************
78 
79 ! ==============================================================================
80 ! Parameters
81 ! ==============================================================================
82 
83  TYPE(t_region), POINTER :: pregion
84 
85 ! ==============================================================================
86 ! Locals
87 ! ==============================================================================
88 
89  CHARACTER(CHRLEN) :: rcsidentstring
90  TYPE(t_global), POINTER :: global
91 
92 #ifdef PLAG
93  TYPE(t_plag), POINTER :: pplag
94 #endif
95 
96 ! *****************************************************************************
97 ! Start
98 ! *****************************************************************************
99 
100  rcsidentstring = &
101  '$RCSfile: RFLU_DeallocMemSolWrapper.F90,v $ $Revision: 1.10 $'
102 
103  global => pregion%global
104 
105  CALL registerfunction(global,'RFLU_DeallocMemSolWrapper', &
106  'RFLU_DeallocMemSolWrapper.F90')
107 
108  IF ( global%myProcid == masterproc .AND. &
109  global%verbLevel > verbose_none ) THEN
110  WRITE(stdout,'(A,1X,A)') solver_name,'Deallocating memory...'
111  END IF ! global%verbLevel
112 
113 ! ******************************************************************************
114 ! Allocate memory
115 ! ******************************************************************************
116 
117  CALL rflu_deallocatememorysolcv(pregion)
118  CALL rflu_deallocatememorysoldv(pregion)
119  CALL rflu_deallocatememorysolgv(pregion)
120 
121  IF ( pregion%mixtInput%computeTv .EQV. .true. ) THEN
122  CALL rflu_deallocatememorysoltv(pregion)
123  END IF ! pRegion%mixtInput%computeTv
124 
125 #ifdef PLAG
126  IF ( global%plagUsed .EQV. .true. ) THEN
127  pplag => pregion%plag
128 
129  CALL plag_rflu_deallocmemsol(pregion,pplag)
130  CALL plag_rflu_deallocmemsoltile(pregion)
131  END IF ! plagUsed
132 #endif
133 
134 #ifdef SPEC
135  IF ( global%specUsed .EQV. .true. ) THEN
136  CALL spec_rflu_deallocatememorysol(pregion)
137 
138  IF ( pregion%specInput%nSpeciesEE > 0 ) THEN
139  CALL spec_rflu_deallocatememoryeev(pregion)
140  END IF ! pRegion%specInput%nSpeciesEE
141  END IF ! global%specUsed
142 #endif
143 
144 ! *****************************************************************************
145 ! End
146 ! *****************************************************************************
147 
148  IF ( global%myProcid == masterproc .AND. &
149  global%verbLevel > verbose_none ) THEN
150  WRITE(stdout,'(A,1X,A)') solver_name,'Deallocating memory done.'
151  END IF ! global%verbLevel
152 
153  CALL deregisterfunction(global)
154 
155 END SUBROUTINE rflu_deallocmemsolwrapper
156 
157 ! ******************************************************************************
158 !
159 ! RCS Revision history:
160 !
161 ! $Log: RFLU_DeallocMemSolWrapper.F90,v $
162 ! Revision 1.10 2008/12/06 08:45:05 mtcampbe
163 ! Updated license.
164 !
165 ! Revision 1.9 2008/11/19 22:18:16 mtcampbe
166 ! Added Illinois Open Source License/Copyright
167 !
168 ! Revision 1.8 2005/11/27 01:58:43 haselbac
169 ! Added deallocation of EEv
170 !
171 ! Revision 1.7 2005/11/17 14:49:39 haselbac
172 ! Bug fix: Tv needed by Rocspecies with EE
173 !
174 ! Revision 1.6 2005/11/11 23:45:59 fnajjar
175 ! Bug fix: Added dealloc of tv for PLAG
176 !
177 ! Revision 1.5 2005/11/10 02:45:54 haselbac
178 ! Change logic bcos of variable properties
179 !
180 ! Revision 1.4 2004/07/28 15:29:21 jferry
181 ! created global variable for spec use
182 !
183 ! Revision 1.3 2004/03/19 21:32:14 haselbac
184 ! Changed memory deallocation logic
185 !
186 ! Revision 1.2 2004/03/05 22:09:05 jferry
187 ! created global variables for peul, plag, and inrt use
188 !
189 ! Revision 1.1 2004/02/26 21:01:22 haselbac
190 ! Initial revision
191 !
192 ! ******************************************************************************
193 
194 
195 
196 
197 
198 
199 
subroutine spec_rflu_deallocatememoryeev(pRegion)
subroutine plag_rflu_deallocmemsol(pRegion, pPlag)
subroutine, public rflu_deallocatememorysolgv(pRegion)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine plag_rflu_deallocmemsoltile(pRegion)
subroutine, public rflu_deallocatememorysolcv(pRegion)
subroutine rflu_deallocmemsolwrapper(pRegion)
subroutine, public rflu_deallocatememorysoldv(pRegion)
subroutine spec_rflu_deallocatememorysol(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine, public rflu_deallocatememorysoltv(pRegion)