Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PERI_rFLU_DeallocateMemory.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 rocperi.
26 !
27 ! Description: None.
28 !
29 ! Input: region = Region pointer
30 !
31 ! Output: None.
32 !
33 ! Notes: None.
34 !
35 ! ******************************************************************************
36 !
37 ! $Id: PERI_rFLU_DeallocateMemory.F90,v 1.3 2008/12/06 08:44:37 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2003-2004 by the University of Illinois
40 !
41 ! ******************************************************************************
42 
43 SUBROUTINE peri_rflu_deallocatememory(region)
44 
45  USE moddatatypes
46  USE moderror
47  USE modglobal, ONLY: t_global
48  USE modparameters
49  USE moddatastruct, ONLY: t_region
50  USE modmpi
51 
52 ! USE PERI_ModInterfaces, ONLY: PERI_FluDeallocateMemorySol, &
53 ! PERI_FluDeallocateMemoryTStep
54 
55  IMPLICIT NONE
56 
57 ! ==============================================================================
58 ! Arguments
59 ! ==============================================================================
60 
61  TYPE(t_region), POINTER :: region
62 
63 ! ==============================================================================
64 ! Locals
65 ! ==============================================================================
66 
67  CHARACTER(CHRLEN) :: rcsidentstring
68  TYPE(t_global), POINTER :: global
69 
70 ! ******************************************************************************
71 ! Start
72 ! ******************************************************************************
73 
74  rcsidentstring = '$RCSfile: PERI_rFLU_DeallocateMemory.F90,v $ $Revision: 1.3 $'
75 
76  global => region%global
77 
78  CALL registerfunction(global,'PERI_RFLU_DeallocateMemory',&
79  'PERI_rFLU_DeallocateMemory.F90')
80 
81  IF ( global%myProcid == masterproc .AND. &
82  global%verbLevel > verbose_none ) THEN
83  WRITE(stdout,'(A,1X,A)') solver_name,'Deallocating memory for rocperi...'
84  END IF ! global%verbLevel
85 
86 ! ******************************************************************************
87 ! Deallocate memory
88 ! ******************************************************************************
89 
90 ! CALL PERI_FluDeallocateMemorySol(region)
91 ! CALL PERI_FluDeallocateMemoryTStep(region)
92 
93 ! ******************************************************************************
94 ! End
95 ! ******************************************************************************
96 
97  IF ( global%myProcid == masterproc .AND. &
98  global%verbLevel > verbose_none ) THEN
99  WRITE(stdout,'(A,1X,A)') solver_name, &
100  'Deallocating memory for rocperi done.'
101  END IF ! global%verbLevel
102 
103  CALL deregisterfunction(global)
104 
105 END SUBROUTINE peri_rflu_deallocatememory
106 
107 ! ******************************************************************************
108 !
109 ! RCS Revision history:
110 !
111 ! $Log: PERI_rFLU_DeallocateMemory.F90,v $
112 ! Revision 1.3 2008/12/06 08:44:37 mtcampbe
113 ! Updated license.
114 !
115 ! Revision 1.2 2008/11/19 22:17:49 mtcampbe
116 ! Added Illinois Open Source License/Copyright
117 !
118 ! Revision 1.1 2004/06/17 23:09:52 wasistho
119 ! initial import PERI_RFLU_DeallocateMemory
120 !
121 !
122 !
123 ! ******************************************************************************
124 
125 
126 
127 
128 
129 
130 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine peri_rflu_deallocatememory(region)
subroutine deregisterfunction(global)
Definition: ModError.F90:469