Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
conv/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: Memory deallocation wrapper for rfluconv.
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.6 2008/12/06 08:44:55 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2004 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 
58 
59 #ifdef PLAG
62 #endif
63 
64 #ifdef SPEC
66 #endif
67 
68  IMPLICIT NONE
69 
70 ! ******************************************************************************
71 ! Declarations and definitions
72 ! ******************************************************************************
73 
74 ! ==============================================================================
75 ! Parameters
76 ! ==============================================================================
77 
78  TYPE(t_region), POINTER :: pregion
79 
80 ! ==============================================================================
81 ! Locals
82 ! ==============================================================================
83 
84  CHARACTER(CHRLEN) :: rcsidentstring
85  TYPE(t_global), POINTER :: global
86 
87 #ifdef PLAG
88  TYPE(t_plag), POINTER :: pplag
89 #endif
90 
91 ! *****************************************************************************
92 ! Start
93 ! *****************************************************************************
94 
95  rcsidentstring = &
96  '$RCSfile: RFLU_DeallocMemSolWrapper.F90,v $ $Revision: 1.6 $'
97 
98  global => pregion%global
99 
100  CALL registerfunction(global,'RFLU_DeallocMemSolWrapper', &
101  'RFLU_DeallocMemSolWrapper.F90')
102 
103  IF ( global%myProcid == masterproc .AND. &
104  global%verbLevel > verbose_none ) THEN
105  WRITE(stdout,'(A,1X,A)') solver_name,'Deallocating memory...'
106  END IF ! global%verbLevel
107 
108 ! ******************************************************************************
109 ! Allocate memory
110 ! ******************************************************************************
111 
112  CALL rflu_deallocatememorysolcv(pregion)
113 
114 #ifdef PLAG
115  IF ( global%plagUsed .EQV. .true. ) THEN
116  pplag => pregion%plag
117  CALL plag_rflu_deallocmemsol(pregion,pplag)
118  CALL plag_rflu_deallocmemsoltile(pregion)
119  END IF ! plagUsed
120 #endif
121 
122 #ifdef SPEC
123  IF ( global%specUsed .EQV. .true. ) THEN
124  CALL spec_rflu_deallocatememorysol(pregion)
125  END IF ! global%specUsed
126 #endif
127 
128 ! *****************************************************************************
129 ! End
130 ! *****************************************************************************
131 
132  IF ( global%myProcid == masterproc .AND. &
133  global%verbLevel > verbose_none ) THEN
134  WRITE(stdout,'(A,1X,A)') solver_name,'Deallocating memory done.'
135  END IF ! global%verbLevel
136 
137  CALL deregisterfunction(global)
138 
139 END SUBROUTINE rflu_deallocmemsolwrapper
140 
141 !******************************************************************************
142 !
143 ! RCS Revision history:
144 !
145 ! $Log: RFLU_DeallocMemSolWrapper.F90,v $
146 ! Revision 1.6 2008/12/06 08:44:55 mtcampbe
147 ! Updated license.
148 !
149 ! Revision 1.5 2008/11/19 22:18:05 mtcampbe
150 ! Added Illinois Open Source License/Copyright
151 !
152 ! Revision 1.4 2004/07/28 15:29:21 jferry
153 ! created global variable for spec use
154 !
155 ! Revision 1.3 2004/03/19 21:23:31 haselbac
156 ! Changed allocation logic
157 !
158 ! Revision 1.2 2004/03/05 22:09:05 jferry
159 ! created global variables for peul, plag, and inrt use
160 !
161 ! Revision 1.1 2004/02/26 21:01:02 haselbac
162 ! Initial revision
163 !
164 !******************************************************************************
165 
166 
167 
168 
169 
170 
171 
subroutine plag_rflu_deallocmemsol(pRegion, pPlag)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine plag_rflu_deallocmemsoltile(pRegion)
subroutine, public rflu_deallocatememorysolcv(pRegion)
subroutine rflu_deallocmemsolwrapper(pRegion)
subroutine spec_rflu_deallocatememorysol(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469