Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_CheckValidityWrapper.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 checking validity of variables.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! pRegion Region data
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 ! ******************************************************************************
37 !
38 ! $Id: RFLU_CheckValidityWrapper.F90,v 1.3 2008/12/06 08:44:11 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2006 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE rflu_checkvaliditywrapper(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  USE modinterfaces, ONLY: rflu_checkvalidity, &
55 
56 #ifdef PLAG
58 #endif
59 
60  IMPLICIT NONE
61 
62 ! ******************************************************************************
63 ! Definitions and declarations
64 ! ******************************************************************************
65 
66 ! ==============================================================================
67 ! Arguments
68 ! ==============================================================================
69 
70  TYPE(t_region), POINTER :: pregion
71 
72 ! ==============================================================================
73 ! Locals
74 ! ==============================================================================
75 
76  CHARACTER(CHRLEN) :: rcsidentstring
77  TYPE(t_global), POINTER :: global
78 
79 ! ******************************************************************************
80 ! Start
81 ! ******************************************************************************
82 
83  rcsidentstring = '$RCSfile: RFLU_CheckValidityWrapper.F90,v $'
84 
85  global => pregion%global
86 
87  CALL registerfunction(global,'RFLU_CheckValidityWrapper',&
88  'RFLU_CheckValidityWrapper.F90')
89 
90 ! ******************************************************************************
91 ! Mixture
92 ! ******************************************************************************
93 
94  SELECT CASE ( pregion%mixtInput%fluidModel )
95 
96 ! ==============================================================================
97 ! Incompressible fluid model
98 ! ==============================================================================
99 
100  CASE ( fluid_model_incomp )
101 
102 ! ==============================================================================
103 ! Compressible fluid model
104 ! ==============================================================================
105 
106  CASE ( fluid_model_comp )
107  SELECT CASE ( pregion%mixtInput%gasModel )
108  CASE ( gas_model_tcperf, &
109  gas_model_mixt_tcperf, &
110  gas_model_mixt_tperf, &
111  gas_model_mixt_pseudo )
112  CALL rflu_checkvalidity(pregion)
113  CASE ( gas_model_mixt_gasliq )
114  CALL rflu_checkvalidity_gl(pregion)
115  CASE default
116  CALL errorstop(global,err_reached_default,__line__)
117  END SELECT ! pRegion%mixtInput%gasModel
118 
119 ! ==============================================================================
120 ! Default
121 ! ==============================================================================
122 
123  CASE default
124  CALL errorstop(global,err_reached_default,__line__)
125  END SELECT ! pRegion%mixtInput%fluidModel
126 
127 ! ******************************************************************************
128 ! Multiphysics modules
129 ! ******************************************************************************
130 
131 #ifdef PLAG
132 ! ==============================================================================
133 ! Particles
134 ! ==============================================================================
135 
136  IF ( global%plagUsed .EQV. .true. ) THEN
137  CALL plag_checkvalidity(pregion)
138  END IF ! global%plagUsed
139 #endif
140 
141 ! ******************************************************************************
142 ! End
143 ! ******************************************************************************
144 
145  CALL deregisterfunction(global)
146 
147 END SUBROUTINE rflu_checkvaliditywrapper
148 
149 ! ******************************************************************************
150 !
151 ! RCS Revision history:
152 !
153 ! $Log: RFLU_CheckValidityWrapper.F90,v $
154 ! Revision 1.3 2008/12/06 08:44:11 mtcampbe
155 ! Updated license.
156 !
157 ! Revision 1.2 2008/11/19 22:17:25 mtcampbe
158 ! Added Illinois Open Source License/Copyright
159 !
160 ! Revision 1.1 2006/03/26 20:20:58 haselbac
161 ! Initial revision
162 !
163 ! ******************************************************************************
164 
165 
166 
167 
168 
169 
170 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_checkvalidity(pRegion)
subroutine, public plag_checkvalidity(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
Definition: ModError.F90:483
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine rflu_checkvaliditywrapper(pRegion)
subroutine rflu_checkvalidity_gl(pRegion)