Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
init/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.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! pRegion Region pointer
31 !
32 ! Output: None.
33 !
34 ! Notes:
35 ! 1. Do not allocate memory for particles because treated separately.
36 !
37 ! ******************************************************************************
38 !
39 ! $Id: RFLU_AllocMemSolWrapper.F90,v 1.6 2008/12/06 08:44:56 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2005 by the University of Illinois
42 !
43 ! ******************************************************************************
44 
45 SUBROUTINE rflu_allocmemsolwrapper(pRegion)
46 
47  USE moddatatypes
48  USE moderror
49  USE modparameters
50  USE modglobal, ONLY: t_global
51  USE moddatastruct, ONLY: t_region
52  USE modmpi
53 
57 
58 #ifdef SPEC
61 #endif
62 
63  IMPLICIT NONE
64 
65 ! ******************************************************************************
66 ! Definitions and declarations
67 ! ******************************************************************************
68 
69 ! ==============================================================================
70 ! Arguments
71 ! ==============================================================================
72 
73  TYPE(t_region), POINTER :: pregion
74 
75 ! ==============================================================================
76 ! Locals
77 ! ==============================================================================
78 
79  CHARACTER(CHRLEN) :: rcsidentstring
80  TYPE(t_global), POINTER :: global
81 
82 ! ******************************************************************************
83 ! Start
84 ! ******************************************************************************
85 
86  rcsidentstring = '$RCSfile: RFLU_AllocMemSolWrapper.F90,v $ $Revision: 1.6 $'
87 
88  global => pregion%global
89 
90  CALL registerfunction(global,'RFLU_AllocMemSolWrapper', &
91  'RFLU_AllocMemSolWrapper.F90')
92 
93  IF ( global%myProcid == masterproc .AND. &
94  global%verbLevel > verbose_none ) THEN
95  WRITE(stdout,'(A,1X,A)') solver_name,'Allocating memory...'
96  END IF ! global%verbLevel
97 
98 ! ******************************************************************************
99 ! Allocate memory
100 ! ******************************************************************************
101 
102 ! ==============================================================================
103 ! Mixture
104 ! ==============================================================================
105 
106  CALL rflu_allocatememorysolcv(pregion)
107  CALL rflu_allocatememorysolgv(pregion)
108  CALL rflu_allocatememorysoldv(pregion)
109 
110 #ifdef SPEC
111 ! ==============================================================================
112 ! Species
113 ! ==============================================================================
114 
115  IF ( global%specUsed .EQV. .true. ) THEN
116  CALL spec_rflu_allocatememorysol(pregion)
117 
118  IF ( pregion%specInput%nSpeciesEE > 0 ) THEN
119  CALL spec_rflu_allocatememoryeev(pregion)
120  END IF ! pRegion%specInput%nSpeciesEE
121  END IF ! global%specUsed
122 #endif
123 
124 ! ******************************************************************************
125 ! End
126 ! ******************************************************************************
127 
128  IF ( global%myProcid == masterproc .AND. &
129  global%verbLevel > verbose_none ) THEN
130  WRITE(stdout,'(A,1X,A)') solver_name,'Allocating memory done.'
131  END IF ! global%verbLevel
132 
133  CALL deregisterfunction(global)
134 
135 END SUBROUTINE rflu_allocmemsolwrapper
136 
137 ! ******************************************************************************
138 !
139 ! RCS Revision history:
140 !
141 ! $Log: RFLU_AllocMemSolWrapper.F90,v $
142 ! Revision 1.6 2008/12/06 08:44:56 mtcampbe
143 ! Updated license.
144 !
145 ! Revision 1.5 2008/11/19 22:18:06 mtcampbe
146 ! Added Illinois Open Source License/Copyright
147 !
148 ! Revision 1.4 2006/08/24 02:14:27 haselbac
149 ! Bug fix: Allocate dv bcos of NSCBC code
150 !
151 ! Revision 1.3 2005/11/27 01:57:47 haselbac
152 ! Added allocation of EEv
153 !
154 ! Revision 1.2 2005/11/10 02:41:02 haselbac
155 ! Now alloc gv outside GENX bcos of variable properties
156 !
157 ! Revision 1.1 2005/04/15 15:08:11 haselbac
158 ! Initial revision
159 !
160 ! ******************************************************************************
161 
162 
163 
164 
165 
166 
167 
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 rflu_allocmemsolwrapper(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine, public rflu_allocatememorysolgv(pRegion)