Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_PostProcessRegionsCommon2.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: Wrapper for postprocessing results without merging the regions.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! pRegion Pointer to region data
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 ! ******************************************************************************
37 !
38 ! $Id: RFLU_PostProcessRegionsCommon2.F90,v 1.8 2008/12/06 08:45:06 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2005 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE rflu_postprocessregionscommon2(pRegion)
45 
46  USE moddatatypes
47  USE modglobal, ONLY: t_global
48  USE moderror
49  USE moddatastruct, ONLY: t_region
50  USE modparameters
51 
63 
64 #ifdef PLAG
66 #endif
67 
75 
76  IMPLICIT NONE
77 
78 ! ******************************************************************************
79 ! Declarations and definitions
80 ! ******************************************************************************
81 
82 ! ==============================================================================
83 ! Arguments
84 ! ==============================================================================
85 
86  TYPE(t_region), POINTER :: pregion
87 
88 ! ==============================================================================
89 ! Local variables
90 ! ==============================================================================
91 
92  CHARACTER(CHRLEN) :: rcsidentstring
93  INTEGER :: errorflag
94  TYPE(t_global), POINTER :: global
95 
96 ! ******************************************************************************
97 ! Start
98 ! ******************************************************************************
99 
100  rcsidentstring = '$RCSfile: RFLU_PostProcessRegionsCommon2.F90,v $ $Revision: 1.8 $'
101 
102  global => pregion%global
103 
104  CALL registerfunction(global,'RFLU_PostProcessRegionsCommon2',&
105  'RFLU_PostProcessRegionsCommon2.F90')
106 
107 ! ******************************************************************************
108 ! Deallocate memory
109 ! ******************************************************************************
110 
111  IF ( global%postPlotType == plot_grid_flow ) THEN
112  IF ( rflu_decidecomputeplottingvars(pregion) .EQV. .true. ) THEN
113  CALL rflu_destroyplottingvarmaps(pregion)
114  CALL rflu_destroyplottingvars(pregion)
115  END IF ! RFLU_DecideComputePlottingVars
116  END IF ! global%postPlotType
117 
118  IF ( rflu_decidebuildgeometry(pregion%global) .EQV. .true. ) THEN
119  CALL rflu_destroygeometry(pregion)
120  END IF ! RFLU_DecideBuildGeometry
121 
122  CALL rflu_destroyfacelist(pregion)
123  CALL rflu_destroybvertexlists(pregion)
124  CALL rflu_destroycellmapping(pregion)
125  CALL rflu_deallocmemsolwrapper(pregion)
126  CALL rflu_deallocatememorygspeeds(pregion)
127 
128  IF ( global%patchCoeffFlag .EQV. .true. ) THEN
129  CALL rflu_destroypatchcoeffs(pregion)
130  END IF ! global%patchCoeffFlag
131 
132 #ifdef PLAG
133  IF ( global%plagUsed .EQV. .true. ) THEN
134  CALL plag_destroysurfstats(pregion)
135  END IF ! global%plagUsed
136 #endif
137 
138  CALL rflu_destroygrid(pregion)
139 
140  IF ( (global%postPlotType == plot_grid_flow) .AND. &
141  (global%postInterpType /= interp_type_none) ) THEN
142  CALL rflu_deallocmemvertwrapper(pregion)
143  END IF ! global%postPlotType
144 
145 ! ******************************************************************************
146 ! End
147 ! ******************************************************************************
148 
149  CALL deregisterfunction(global)
150 
151 END SUBROUTINE rflu_postprocessregionscommon2
152 
153 ! ******************************************************************************
154 !
155 ! RCS Revision history:
156 !
157 ! $Log: RFLU_PostProcessRegionsCommon2.F90,v $
158 ! Revision 1.8 2008/12/06 08:45:06 mtcampbe
159 ! Updated license.
160 !
161 ! Revision 1.7 2008/11/19 22:18:17 mtcampbe
162 ! Added Illinois Open Source License/Copyright
163 !
164 ! Revision 1.6 2007/03/19 21:45:19 haselbac
165 ! Adapted to changes related to plotting variables
166 !
167 ! Revision 1.5 2006/04/07 15:19:26 haselbac
168 ! Removed tabs
169 !
170 ! Revision 1.4 2005/12/10 16:57:46 haselbac
171 ! Added use of RFLU_DecideComputePlottingVars
172 !
173 ! Revision 1.3 2005/11/10 16:51:30 fnajjar
174 ! Added plagUsed IF statement around PLAG routines
175 !
176 ! Revision 1.2 2005/10/05 20:53:00 haselbac
177 ! Fixed missing module bugs
178 !
179 ! Revision 1.1 2005/10/05 20:23:34 haselbac
180 ! Initial revision
181 !
182 ! ******************************************************************************
183 
184 
185 
186 
187 
188 
189 
subroutine rflu_deallocmemvertwrapper(pRegion)
subroutine rflu_destroygrid(pRegion)
subroutine rflu_setvarswrapper(pRegion, icgBeg, icgEnd)
subroutine, public rflu_deallocatememorygspeeds(pRegion)
subroutine, public rflu_destroyfacelist(pRegion)
subroutine, public rflu_destroygeometry(pRegion)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_setvarinfowrapper(pRegion)
subroutine, public rflu_destroypatchcoeffs(pRegion)
subroutine, public plag_destroysurfstats(pRegion)
subroutine rflu_deallocmemsolwrapper(pRegion)
subroutine, public rflu_destroycellmapping(pRegion)
LOGICAL function, public rflu_decidecomputeplottingvars(pRegion)
subroutine, public rflu_destroyplottingvars(pRegion)
subroutine, public rflu_destroybvertexlists(pRegion)
LOGICAL function rflu_decidebuildgeometry(global)
subroutine, public rflu_destroyplottingvarmaps(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine rflu_postprocessregionscommon2(pRegion)
subroutine rflu_printflowinfowrapper(pRegion)