Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_SetVars.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 mixture 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: None.
37 !
38 ! ******************************************************************************
39 !
40 ! $Id: RFLU_SetVars.F90,v 1.6 2008/12/06 08:44:13 mtcampbe Exp $
41 !
42 ! Copyright: (c) 2004-2005 by the University of Illinois
43 !
44 ! ******************************************************************************
45 
46 SUBROUTINE rflu_setvars(pRegion,icgBeg,icgEnd)
47 
48  USE moddatatypes
49  USE modparameters
50  USE moderror
51  USE modglobal, ONLY: t_global
52  USE moddatastruct, ONLY: t_region
53  USE modgrid, ONLY: t_grid
54 
55  USE modinterfaces, ONLY: rflu_setgasvars, &
58 
59  IMPLICIT NONE
60 
61 ! ******************************************************************************
62 ! Definitions and declarations
63 ! ******************************************************************************
64 
65 ! ==============================================================================
66 ! Arguments
67 ! ==============================================================================
68 
69  INTEGER, INTENT(IN) :: icgbeg,icgend
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_SetVars.F90,v $ $Revision: 1.6 $'
84 
85  global => pregion%global
86 
87  CALL registerfunction(global,'RFLU_SetVars',&
88  'RFLU_SetVars.F90')
89 
90 #ifdef ROCPROF
91  CALL fprofiler_begins("RFLU::SetVars")
92 #endif
93 
94 ! ******************************************************************************
95 ! Set variables
96 ! ******************************************************************************
97 
98 ! ==============================================================================
99 ! Mixture
100 ! ==============================================================================
101 
102  CALL rflu_setgasvars(pregion,icgbeg,icgend)
103  CALL rflu_setdependentvars(pregion,icgbeg,icgend)
104 
105  IF ( pregion%mixtInput%computeTv .EQV. .true. ) THEN
106  CALL rflu_settransportvars(pregion,icgbeg,icgend)
107  END IF ! pRegion%mixtInput%computeTv
108 
109 ! ******************************************************************************
110 ! End
111 ! ******************************************************************************
112 
113 #ifdef ROCPROF
114  CALL fprofiler_ends("RFLU::SetVars")
115 #endif
116 
117  CALL deregisterfunction(global)
118 
119 END SUBROUTINE rflu_setvars
120 
121 ! ******************************************************************************
122 !
123 ! RCS Revision history:
124 !
125 ! $Log: RFLU_SetVars.F90,v $
126 ! Revision 1.6 2008/12/06 08:44:13 mtcampbe
127 ! Updated license.
128 !
129 ! Revision 1.5 2008/11/19 22:17:26 mtcampbe
130 ! Added Illinois Open Source License/Copyright
131 !
132 ! Revision 1.4 2006/04/07 15:19:16 haselbac
133 ! Removed tabs
134 !
135 ! Revision 1.3 2005/07/07 22:44:24 haselbac
136 ! Added profiling calls
137 !
138 ! Revision 1.2 2005/04/15 15:06:23 haselbac
139 ! Added range arguments, adapted calls to other routines accordingly
140 !
141 ! Revision 1.1 2004/11/14 20:02:49 haselbac
142 ! Initial revision
143 !
144 ! ******************************************************************************
145 
146 
147 
148 
149 
150 
151 
subroutine rflu_setvars(pRegion, icgBeg, icgEnd)
subroutine rflu_setdependentvars(pRegion, icgBeg, icgEnd)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_settransportvars(pRegion, icgBeg, icgEnd)
subroutine rflu_setgasvars(pRegion, icgBeg, icgEnd)
subroutine deregisterfunction(global)
Definition: ModError.F90:469