Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_SetVarsContWrapper.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 setting continuous-phase variables.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! pRegion Pointer to region
31 ! icgBeg Beginning cell index
32 ! icgEnd Ending cell index
33 !
34 ! Output: None.
35 !
36 ! Notes:
37 ! 1. Split from RFLU_SetVarsWrapper because in RungeKuttaMP need to update
38 ! continuous-phase variables separately and discrete-phase variables can
39 ! only be set once their communication is completed.
40 !
41 ! ******************************************************************************
42 !
43 ! $Id: RFLU_SetVarsContWrapper.F90,v 1.4 2008/12/06 08:44:13 mtcampbe Exp $
44 !
45 ! Copyright: (c) 2005 by the University of Illinois
46 !
47 ! ******************************************************************************
48 
49 SUBROUTINE rflu_setvarscontwrapper(pRegion,icgBeg,icgEnd)
50 
51  USE moddatatypes
52  USE modparameters
53  USE moderror
54  USE modglobal, ONLY: t_global
55  USE moddatastruct, ONLY: t_region
56  USE modgrid, ONLY: t_grid
57 
60 
61  USE modinterfaces, ONLY: rflu_setvars
62 
63 #ifdef SPEC
65 #endif
66 
67  IMPLICIT NONE
68 
69 ! ******************************************************************************
70 ! Definitions and declarations
71 ! ******************************************************************************
72 
73 ! ==============================================================================
74 ! Arguments
75 ! ==============================================================================
76 
77  INTEGER, INTENT(IN) :: icgbeg,icgend
78  TYPE(t_region), POINTER :: pregion
79 
80 ! ==============================================================================
81 ! Locals
82 ! ==============================================================================
83 
84  CHARACTER(CHRLEN) :: rcsidentstring
85  TYPE(t_global), POINTER :: global
86 
87 ! ******************************************************************************
88 ! Start
89 ! ******************************************************************************
90 
91  rcsidentstring = '$RCSfile: RFLU_SetVarsContWrapper.F90,v $ $Revision: 1.4 $'
92 
93  global => pregion%global
94 
95  CALL registerfunction(global,'RFLU_SetVarsContWrapper',&
96  'RFLU_SetVarsContWrapper.F90')
97 
98 ! ******************************************************************************
99 ! Set variables
100 ! ******************************************************************************
101 
102 ! ==============================================================================
103 ! Mixture. NOTE need species conserved state vector in primitive form
104 ! ==============================================================================
105 
106 #ifdef SPEC
107  IF ( global%specUsed .EQV. .true. ) THEN
108  CALL rflu_scalarconvertcvcons2prim(pregion,pregion%spec%cv, &
109  pregion%spec%cvState)
110  END IF ! global%specUsed
111 #endif
112 
113  CALL rflu_setvars(pregion,icgbeg,icgend)
114 
115 #ifdef SPEC
116  IF ( global%specUsed .EQV. .true. ) THEN
117  CALL rflu_scalarconvertcvprim2cons(pregion,pregion%spec%cv, &
118  pregion%spec%cvState)
119  END IF ! global%specUsed
120 #endif
121 
122 #ifdef SPEC
123 ! ==============================================================================
124 ! Species
125 ! ==============================================================================
126 
127  IF ( global%specUsed .EQV. .true. ) THEN
128  CALL spec_updatedependentvars(pregion,icgbeg,icgend)
129  END IF ! global%specUsed
130 #endif
131 
132 ! ******************************************************************************
133 ! End
134 ! ******************************************************************************
135 
136  CALL deregisterfunction(global)
137 
138 END SUBROUTINE rflu_setvarscontwrapper
139 
140 ! ******************************************************************************
141 !
142 ! RCS Revision history:
143 !
144 ! $Log: RFLU_SetVarsContWrapper.F90,v $
145 ! Revision 1.4 2008/12/06 08:44:13 mtcampbe
146 ! Updated license.
147 !
148 ! Revision 1.3 2008/11/19 22:17:26 mtcampbe
149 ! Added Illinois Open Source License/Copyright
150 !
151 ! Revision 1.2 2006/04/07 15:19:16 haselbac
152 ! Removed tabs
153 !
154 ! Revision 1.1 2005/11/11 13:26:43 fnajjar
155 ! Initial revision
156 !
157 ! ******************************************************************************
158 
159 
160 
161 
162 
163 
164 
subroutine rflu_setvars(pRegion, icgBeg, icgEnd)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine, public rflu_scalarconvertcvprim2cons(pRegion, cvScal, cvScalStateCurrent)
subroutine rflu_setvarscontwrapper(pRegion, icgBeg, icgEnd)
subroutine spec_updatedependentvars(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine, public rflu_scalarconvertcvcons2prim(pRegion, cvScal, cvScalStateCurrent)