Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_InitFlowSerialWrapper.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 initializing solution from scratch.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! pRegion Pointer to region
31 ! pRegionSerial Pointer to serial region
32 !
33 ! Output: None.
34 !
35 ! Notes: None.
36 !
37 ! ******************************************************************************
38 !
39 ! $Id: RFLU_InitFlowSerialWrapper.F90,v 1.4 2008/12/06 08:44:56 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2005 by the University of Illinois
42 !
43 ! ******************************************************************************
44 
45 SUBROUTINE rflu_initflowserialwrapper(pRegion,pRegionSerial)
46 
47  USE modglobal, ONLY: t_global
48  USE moddatatypes
49  USE modparameters
50  USE moderror
51  USE modgrid, ONLY: t_grid
52  USE moddatastruct, ONLY: t_region
53  USE modmpi
54 
56 
57  IMPLICIT NONE
58 
59 ! ******************************************************************************
60 ! Declarations and definitions
61 ! ******************************************************************************
62 
63 ! ==============================================================================
64 ! Arguments
65 ! ==============================================================================
66 
67  TYPE(t_region), POINTER :: pregion,pregionserial
68 
69 ! ==============================================================================
70 ! Local variables
71 ! ==============================================================================
72 
73  CHARACTER(CHRLEN) :: rcsidentstring
74  TYPE(t_global), POINTER :: global
75  TYPE(t_grid), POINTER :: pgrid
76 
77 ! ******************************************************************************
78 ! Start
79 ! ******************************************************************************
80 
81  rcsidentstring = '$RCSfile: RFLU_InitFlowSerialWrapper.F90,v $ $Revision: 1.4 $'
82 
83  global => pregion%global
84 
85  CALL registerfunction(global,'RFLU_InitFlowSerialWrapper',&
86  'RFLU_InitFlowSerialWrapper.F90')
87 
88  IF ( global%verbLevel > verbose_none ) THEN
89  WRITE(stdout,'(A,1X,A)') solver_name,'Initializing from serial solution...'
90  END IF ! global%verbLevel
91 
92  IF ( global%verbLevel > verbose_low ) THEN
93  WRITE(stdout,'(A,3X,A,1X,I5.5)') solver_name,'Global region:', &
94  pregion%iRegionGlobal
95  END IF ! global%verbLevel
96 
97 ! ******************************************************************************
98 ! Set pointers
99 ! ******************************************************************************
100 
101  pgrid => pregion%grid
102 
103 ! ******************************************************************************
104 ! Mixture
105 ! ******************************************************************************
106 
107  pregion%mixt%cvState = cv_mixt_state_cons
108 
109  CALL rflu_copy_celldatas2p_r2d(global,pgrid,pregion%mixt%cv, &
110  pregionserial%mixt%cv)
111 
112 ! ******************************************************************************
113 ! Physical modules
114 ! ******************************************************************************
115 
116 #ifdef SPEC
117 ! ==============================================================================
118 ! Species
119 ! ==============================================================================
120 
121  IF ( global%specUsed .EQV. .true. ) THEN
122  CALL rflu_copy_celldatas2p_r2d(global,pgrid,pregion%spec%cv, &
123  pregionserial%spec%cv)
124  END IF ! global%specUsed
125 #endif
126 
127 ! ******************************************************************************
128 ! End
129 ! ******************************************************************************
130 
131  IF ( global%verbLevel > verbose_none ) THEN
132  WRITE(stdout,'(A,1X,A)') solver_name, &
133  'Initializing from serial solution done.'
134  END IF ! global%verbLevel
135 
136  CALL deregisterfunction(global)
137 
138 END SUBROUTINE rflu_initflowserialwrapper
139 
140 
141 ! ******************************************************************************
142 !
143 ! RCS Revision history:
144 !
145 ! $Log: RFLU_InitFlowSerialWrapper.F90,v $
146 ! Revision 1.4 2008/12/06 08:44:56 mtcampbe
147 ! Updated license.
148 !
149 ! Revision 1.3 2008/11/19 22:18:06 mtcampbe
150 ! Added Illinois Open Source License/Copyright
151 !
152 ! Revision 1.2 2005/08/19 02:36:02 haselbac
153 ! Adapted to changes in RFLU_ModCopyData
154 !
155 ! Revision 1.1 2005/04/15 15:08:21 haselbac
156 ! Initial revision
157 !
158 ! ******************************************************************************
159 
160 
161 
162 
163 
164 
165 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine, public rflu_copy_celldatas2p_r2d(global, pGrid, var, varSerial)
subroutine rflu_initflowserialwrapper(pRegion, pRegionSerial)
subroutine deregisterfunction(global)
Definition: ModError.F90:469