Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SPEC_RFLU_DeallocateMemoryEEv.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 for Equilibrium Eulerian variables of species
26 ! solution.
27 !
28 ! Description: None.
29 !
30 ! Input:
31 ! pRegion Region pointer
32 !
33 ! Output: None.
34 !
35 ! Notes: None.
36 !
37 ! ******************************************************************************
38 !
39 ! $Id: SPEC_RFLU_DeallocateMemoryEEv.F90,v 1.3 2008/12/06 08:44:40 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2005 by the University of Illinois
42 !
43 ! ******************************************************************************
44 
45 SUBROUTINE spec_rflu_deallocatememoryeev(pRegion)
46 
47  USE moddatatypes
48  USE moderror
49  USE modparameters
50  USE modglobal, ONLY: t_global
51  USE modgrid, ONLY: t_grid
52  USE moddatastruct, ONLY: t_region
53 
54  IMPLICIT NONE
55 
56 ! ******************************************************************************
57 ! Definitions and declarations
58 ! ******************************************************************************
59 
60 ! ==============================================================================
61 ! Arguments
62 ! ==============================================================================
63 
64  TYPE(t_region), POINTER :: pregion
65 
66 ! ==============================================================================
67 ! Locals
68 ! ==============================================================================
69 
70  CHARACTER(CHRLEN) :: rcsidentstring
71  INTEGER :: errorflag
72  TYPE(t_global), POINTER :: global
73 
74 ! ******************************************************************************
75 ! Start
76 ! ******************************************************************************
77 
78  rcsidentstring = '$RCSfile: SPEC_RFLU_DeallocateMemoryEEv.F90,v $ $Revision: 1.3 $'
79 
80  global => pregion%global
81 
82  CALL registerfunction(global,'SPEC_RFLU_DeallocateMemoryEEv',&
83  'SPEC_RFLU_DeallocateMemoryEEv.F90')
84 
85 ! ******************************************************************************
86 ! Deallocate memory
87 ! ******************************************************************************
88 
89  IF ( pregion%specInput%nSpeciesEE > 0 ) THEN
90  DEALLOCATE(pregion%spec%eev,stat=errorflag)
91  global%error = errorflag
92  IF (global%error /= err_none) THEN
93  CALL errorstop(global,err_deallocate,__line__,'pRegion%spec%eev')
94  END IF ! global%error
95  END IF ! pRegion%specInput%nSpeciesEE
96 
97 ! ******************************************************************************
98 ! End
99 ! ******************************************************************************
100 
101  CALL deregisterfunction(global)
102 
103 END SUBROUTINE spec_rflu_deallocatememoryeev
104 
105 ! ******************************************************************************
106 !
107 ! RCS Revision history:
108 !
109 ! $Log: SPEC_RFLU_DeallocateMemoryEEv.F90,v $
110 ! Revision 1.3 2008/12/06 08:44:40 mtcampbe
111 ! Updated license.
112 !
113 ! Revision 1.2 2008/11/19 22:17:52 mtcampbe
114 ! Added Illinois Open Source License/Copyright
115 !
116 ! Revision 1.1 2005/11/27 01:47:26 haselbac
117 ! Initial revision
118 !
119 ! ******************************************************************************
120 
121 
122 
123 
124 
125 
126 
subroutine spec_rflu_deallocatememoryeev(pRegion)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine errorstop(global, errorCode, errorLine, addMessage)
Definition: ModError.F90:483
subroutine deregisterfunction(global)
Definition: ModError.F90:469