Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_SetVarsDiscWrapper.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 discrete-phase variables.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! pRegion Pointer to region
31 !
32 ! Output: None.
33 !
34 ! Notes:
35 ! 1. Split from RFLU_SetVarsWrapper because in RungeKuttaMP need to update
36 ! continuous-phase variables separately and discrete-phase variables can
37 ! only be set once their communication is completed.
38 !
39 ! ******************************************************************************
40 !
41 ! $Id: RFLU_SetVarsDiscWrapper.F90,v 1.3 2008/12/06 08:44:13 mtcampbe Exp $
42 !
43 ! Copyright: (c) 2005 by the University of Illinois
44 !
45 ! ******************************************************************************
46 
47 SUBROUTINE rflu_setvarsdiscwrapper(pRegion)
48 
49  USE moddatatypes
50  USE modparameters
51  USE moderror
52  USE modglobal, ONLY: t_global
53  USE moddatastruct, ONLY: t_region
54  USE modgrid, ONLY: t_grid
55 
58 
59 #ifdef PLAG
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_SetVarsDiscWrapper.F90,v $ $Revision: 1.3 $'
87 
88  global => pregion%global
89 
90  CALL registerfunction(global,'RFLU_SetVarsDiscWrapper',&
91  'RFLU_SetVarsDiscWrapper.F90')
92 
93 ! ******************************************************************************
94 ! Set variables
95 ! ******************************************************************************
96 
97 #ifdef PLAG
98  IF ( global%plagUsed .EQV. .true. ) THEN
99  CALL rflu_convertcvcons2prim(pregion,cv_mixt_state_duvwp)
100  CALL plag_noncvupdate(pregion)
101  CALL rflu_convertcvprim2cons(pregion,cv_mixt_state_cons)
102  END IF ! plagUsed
103 #endif
104 
105 ! ******************************************************************************
106 ! End
107 ! ******************************************************************************
108 
109  CALL deregisterfunction(global)
110 
111 END SUBROUTINE rflu_setvarsdiscwrapper
112 
113 ! ******************************************************************************
114 !
115 ! RCS Revision history:
116 !
117 ! $Log: RFLU_SetVarsDiscWrapper.F90,v $
118 ! Revision 1.3 2008/12/06 08:44:13 mtcampbe
119 ! Updated license.
120 !
121 ! Revision 1.2 2008/11/19 22:17:26 mtcampbe
122 ! Added Illinois Open Source License/Copyright
123 !
124 ! Revision 1.1 2005/11/11 13:26:43 fnajjar
125 ! Initial revision
126 !
127 ! ******************************************************************************
128 
129 
130 
131 
132 
133 
134 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine, public rflu_convertcvcons2prim(pRegion, cvStateFuture)
subroutine plag_noncvupdate(region)
subroutine, public rflu_convertcvprim2cons(pRegion, cvStateFuture)
subroutine rflu_setvarsdiscwrapper(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469