Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_DeallocMemVertWrapper.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 vertex quantities.
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_DeallocMemVertWrapper.F90,v 1.5 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_deallocmemvertwrapper(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 
54 
56 
57 #ifdef SPEC
59 #endif
60 
61  IMPLICIT NONE
62 
63 ! ******************************************************************************
64 ! Declarations and definitions
65 ! ******************************************************************************
66 
67 ! ==============================================================================
68 ! Parameters
69 ! ==============================================================================
70 
71  TYPE(t_region), POINTER :: pregion
72 
73 ! ==============================================================================
74 ! Locals
75 ! ==============================================================================
76 
77  CHARACTER(CHRLEN) :: rcsidentstring
78  TYPE(t_global), POINTER :: global
79 
80 ! *****************************************************************************
81 ! Start
82 ! *****************************************************************************
83 
84  rcsidentstring = &
85  '$RCSfile: RFLU_DeallocMemVertWrapper.F90,v $ $Revision: 1.5 $'
86 
87  global => pregion%global
88 
89  CALL registerfunction(global,'RFLU_DeallocMemVertWrapper', &
90  'RFLU_DeallocMemVertWrapper.F90')
91 
92  IF ( global%myProcid == masterproc .AND. &
93  global%verbLevel > verbose_none ) THEN
94  WRITE(stdout,'(A,1X,A)') solver_name,'Deallocating memory...'
95  END IF ! global%verbLevel
96 
97 ! ******************************************************************************
98 ! Allocate memory
99 ! ******************************************************************************
100 
101  CALL rflu_deallocatememoryvert(pregion)
102 
103  IF ( pregion%mixtInput%fluidModel == fluid_model_comp ) THEN
104  CALL rflu_destroyplottingvarsvert(pregion)
105  END IF ! pRegion%mixtInput%fluidModel
106 
107 #ifdef SPEC
108  IF ( global%specUsed .EQV. .true. ) THEN
109  CALL spec_rflu_deallocatememoryvert(pregion)
110  END IF ! global%specUsed
111 #endif
112 
113 ! *****************************************************************************
114 ! End
115 ! *****************************************************************************
116 
117  IF ( global%myProcid == masterproc .AND. &
118  global%verbLevel > verbose_none ) THEN
119  WRITE(stdout,'(A,1X,A)') solver_name,'Deallocating memory done.'
120  END IF ! global%verbLevel
121 
122  CALL deregisterfunction(global)
123 
124 END SUBROUTINE rflu_deallocmemvertwrapper
125 
126 ! ******************************************************************************
127 !
128 ! RCS Revision history:
129 !
130 ! $Log: RFLU_DeallocMemVertWrapper.F90,v $
131 ! Revision 1.5 2008/12/06 08:45:05 mtcampbe
132 ! Updated license.
133 !
134 ! Revision 1.4 2008/11/19 22:18:16 mtcampbe
135 ! Added Illinois Open Source License/Copyright
136 !
137 ! Revision 1.3 2005/05/01 14:21:24 haselbac
138 ! Added dealloc of plotting vars, cosmetics
139 !
140 ! Revision 1.2 2004/07/28 15:29:21 jferry
141 ! created global variable for spec use
142 !
143 ! Revision 1.1 2004/02/26 21:01:23 haselbac
144 ! Initial revision
145 !
146 ! ******************************************************************************
147 
148 
149 
150 
151 
152 
153 
subroutine rflu_deallocatememoryvert(pRegion)
subroutine rflu_deallocmemvertwrapper(pRegion)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine, public rflu_destroyplottingvarsvert(pRegion)
subroutine spec_rflu_deallocatememoryvert(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469