Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PLAG_RkUpdateWrapper.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 update step in PLAG module.
26 !
27 ! Description: none.
28 !
29 ! Input: pRegion = data of current region,
30 ! iReg = current region,
31 ! istage = current RK stage
32 !
33 ! Output: regions%levels%mixt = new solution after one time step.
34 !
35 ! Notes: none.
36 !
37 !******************************************************************************
38 !
39 ! $Id: PLAG_RkUpdateWrapper.F90,v 1.3 2008/12/06 08:44:36 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2003 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE plag_rkupdatewrapper( region, iReg, istage )
46 
47  USE moddatatypes
48  USE moddatastruct, ONLY : t_region
49  USE modglobal, ONLY : t_global
50  USE moderror
51  USE modmpi
52  USE modparameters
54 
55 #ifdef RFLO
57 #endif
58 
59 #ifdef RFLU
61 #endif
62 
63  IMPLICIT NONE
64 
65 ! ... parameters
66  TYPE(t_region) :: region
67 
68  INTEGER, INTENT(IN) :: ireg, istage
69 
70 ! ... loop variables
71 
72 ! ... local variables
73  CHARACTER(CHRLEN) :: rcsidentstring
74 
75  TYPE(t_global), POINTER :: global
76 
77 #ifdef RFLU
78  TYPE(t_region), POINTER :: pregion
79 #endif
80 
81 !******************************************************************************
82 
83  rcsidentstring = '$RCSfile: PLAG_RkUpdateWrapper.F90,v $ $Revision: 1.3 $'
84 
85  global => region%global
86 
87  CALL registerfunction( global,'PLAG_rkUpdateWrapper',&
88  'PLAG_RkUpdateWrapper.F90' )
89 
90 ! update tiles ----------------------------------------------------------------
91 
92  CALL plag_injctileupdate( region, ireg, istage )
93 
94 ! update evolution equations --------------------------------------------------
95 
96 #ifdef RFLO
97 ! WRITE(*,*) 'Entering PLAG_Update: iReg, iStage = ',iReg, iStage
98  CALL plag_update( region, ireg, istage )
99 #endif
100 
101 #ifdef RFLU
102 ! WRITE(*,*) 'Entering PLAG_RFLU_Update: iReg, iStage = ',iReg, iStage
103  pregion => region%pRegion
104  CALL plag_rflu_update( pregion, istage )
105 #endif
106 
107 ! finalize ====================================================================
108 
109  CALL deregisterfunction( global )
110 
111 END SUBROUTINE plag_rkupdatewrapper
112 
113 !******************************************************************************
114 !
115 ! RCS Revision history:
116 !
117 ! $Log: PLAG_RkUpdateWrapper.F90,v $
118 ! Revision 1.3 2008/12/06 08:44:36 mtcampbe
119 ! Updated license.
120 !
121 ! Revision 1.2 2008/11/19 22:17:48 mtcampbe
122 ! Added Illinois Open Source License/Copyright
123 !
124 ! Revision 1.1 2004/12/01 20:58:17 fnajjar
125 ! Initial revision after changing case
126 !
127 ! Revision 1.4 2004/03/26 21:32:36 fnajjar
128 ! Cleaned up routine for separate RFLO and RFLU calls within ifdef constructs and added PLAG_RFLU_Update call
129 !
130 ! Revision 1.3 2004/03/08 22:26:29 fnajjar
131 ! Removed ifdef RFLO around PLAG_InjcTileUpdate since injection is active with RFLU
132 !
133 ! Revision 1.2 2004/02/26 21:02:22 haselbac
134 ! Commented out RFLO-specific tile update routines
135 !
136 ! Revision 1.1 2003/03/28 19:53:10 fnajjar
137 ! Initial import of wrapper routines for RocfluidMP
138 !
139 !******************************************************************************
140 
141 
142 
143 
144 
145 
146 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine plag_rflu_update(pRegion, iStage)
subroutine plag_rkupdatewrapper(region, iReg, istage)
subroutine plag_injctileupdate(region, iReg, iStage)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine plag_update(region, iReg, iStage)
Definition: PLAG_Update.F90:46