Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
post/RFLU_AllocMemSolWrapper.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: Allocate memory wrapper for rflupost.
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_AllocMemSolWrapper.F90,v 1.10 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_allocmemsolwrapper(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 
61 
62 #ifdef PLAG
65 #endif
66 
67 #ifdef SPEC
70 #endif
71 
72  IMPLICIT NONE
73 
74 ! ******************************************************************************
75 ! Declarations and definitions
76 ! ******************************************************************************
77 
78 ! ==============================================================================
79 ! Parameters
80 ! ==============================================================================
81 
82  TYPE(t_region), POINTER :: pregion
83 
84 ! ==============================================================================
85 ! Locals
86 ! ==============================================================================
87 
88  CHARACTER(CHRLEN) :: rcsidentstring
89  TYPE(t_global), POINTER :: global
90 
91 #ifdef PLAG
92  TYPE(t_plag), POINTER :: pplag
93 #endif
94 
95 ! *****************************************************************************
96 ! Start
97 ! *****************************************************************************
98 
99  rcsidentstring = &
100  '$RCSfile: RFLU_AllocMemSolWrapper.F90,v $ $Revision: 1.10 $'
101 
102  global => pregion%global
103 
104  CALL registerfunction(global,'RFLU_AllocMemSolWrapper', &
105  'RFLU_AllocMemSolWrapper.F90')
106 
107  IF ( global%myProcid == masterproc .AND. &
108  global%verbLevel > verbose_none ) THEN
109  WRITE(stdout,'(A,1X,A)') solver_name,'Allocating memory...'
110  END IF ! global%verbLevel
111 
112 ! ******************************************************************************
113 ! Allocate memory
114 ! ******************************************************************************
115 
116  CALL rflu_allocatememorysolcv(pregion)
117  CALL rflu_allocatememorysoldv(pregion)
118  CALL rflu_allocatememorysolgv(pregion)
119 
120  IF ( pregion%mixtInput%computeTv .EQV. .true. ) THEN
121  CALL rflu_allocatememorysoltv(pregion)
122  END IF ! pRegion%mixtInput%computeTv
123 
124 #ifdef PLAG
125  IF ( global%plagUsed .EQV. .true. ) THEN
126  pplag => pregion%plag
127 
128  CALL plag_rflu_allocmemsol(pregion,pplag)
129  CALL plag_rflu_allocmemsoltile(pregion)
130  END IF ! plagUsed
131 #endif
132 
133 #ifdef SPEC
134  IF ( global%specUsed .EQV. .true. ) THEN
135  CALL spec_rflu_allocatememorysol(pregion)
136 
137  IF ( pregion%specInput%nSpeciesEE > 0 ) THEN
138  CALL spec_rflu_allocatememoryeev(pregion)
139  END IF ! pRegion%specInput%nSpeciesEE
140  END IF ! global%specUsed
141 #endif
142 
143 ! *****************************************************************************
144 ! End
145 ! *****************************************************************************
146 
147  IF ( global%myProcid == masterproc .AND. &
148  global%verbLevel > verbose_none ) THEN
149  WRITE(stdout,'(A,1X,A)') solver_name,'Allocating memory done.'
150  END IF ! global%verbLevel
151 
152  CALL deregisterfunction(global)
153 
154 END SUBROUTINE rflu_allocmemsolwrapper
155 
156 ! *****************************************************************************
157 !
158 ! RCS Revision history:
159 !
160 ! $Log: RFLU_AllocMemSolWrapper.F90,v $
161 ! Revision 1.10 2008/12/06 08:45:05 mtcampbe
162 ! Updated license.
163 !
164 ! Revision 1.9 2008/11/19 22:18:16 mtcampbe
165 ! Added Illinois Open Source License/Copyright
166 !
167 ! Revision 1.8 2005/11/27 01:58:24 haselbac
168 ! Added allocation of EEv
169 !
170 ! Revision 1.7 2005/11/17 14:49:39 haselbac
171 ! Bug fix: Tv needed by Rocspecies with EE
172 !
173 ! Revision 1.6 2005/11/11 23:45:49 fnajjar
174 ! Bug fix: Added alloc of tv for PLAG
175 !
176 ! Revision 1.5 2005/11/10 02:45:37 haselbac
177 ! Change logic bcos of variable properties
178 !
179 ! Revision 1.4 2004/07/28 15:29:21 jferry
180 ! created global variable for spec use
181 !
182 ! Revision 1.3 2004/03/19 21:32:06 haselbac
183 ! Changed memory allocation logic
184 !
185 ! Revision 1.2 2004/03/05 22:09:05 jferry
186 ! created global variables for peul, plag, and inrt use
187 !
188 ! Revision 1.1 2004/02/26 21:01:16 haselbac
189 ! Initial revision
190 !
191 ! *****************************************************************************
192 
193 
194 
195 
196 
197 
198 
subroutine plag_rflu_allocmemsol(pRegion, pPlag)
subroutine spec_rflu_allocatememorysol(pRegion)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine, public rflu_allocatememorysolcv(pRegion)
subroutine spec_rflu_allocatememoryeev(pRegion)
subroutine, public rflu_allocatememorysoldv(pRegion)
subroutine, public rflu_allocatememorysoltv(pRegion)
subroutine rflu_allocmemsolwrapper(pRegion)
subroutine plag_rflu_allocmemsoltile(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine, public rflu_allocatememorysolgv(pRegion)