Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PLAG_RkInit.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: initializes Runge-Kutta data for particles
26 !
27 ! Description: none.
28 !
29 ! Input: none.
30 !
31 ! Output: none.
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: PLAG_RkInit.F90,v 1.5 2008/12/06 08:44:36 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2003 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE plag_rkinit( region,iStage )
44 
45  USE moddatatypes
46  USE moddatastruct, ONLY : t_region
47  USE modglobal, ONLY : t_global
48  USE modpartlag, ONLY : t_plag
49  USE moderror
50  USE modparameters
54  USE plag_modrkinit
55 
56  IMPLICIT NONE
57 
58 ! ... parameters
59  TYPE(t_region), INTENT(INOUT), TARGET :: region
60 
61  INTEGER, INTENT(IN) :: istage
62 
63 ! ... loop variables
64 
65 ! ... local variables
66  CHARACTER(CHRLEN) :: rcsidentstring
67 
68 #ifdef RFLO
69  INTEGER :: ilev
70 #endif
71 
72  TYPE(t_plag) , POINTER :: pplag
73  TYPE(t_global), POINTER :: global
74 
75 !******************************************************************************
76 
77  rcsidentstring = '$RCSfile: PLAG_RkInit.F90,v $ $Revision: 1.5 $'
78 
79  global => region%global
80 
81  CALL registerfunction( global,'PLAG_RkInit',&
82  'PLAG_RkInit.F90' )
83 
84  IF (global%plagUsed) THEN
85 
86 #ifdef RFLO
87  ilev = region%currLevel
88  pplag => region%levels(ilev)%plag
89 #endif
90 #ifdef RFLU
91  pplag => region%plag
92 #endif
93 
94  IF ( pplag%nPcls > 0 ) THEN
95  CALL plag_zerorhs( region )
96  CALL plag_rkinitprimary( region, istage )
97  END IF ! nPcls
98 
99  END IF ! plagUsed
100 
101 ! Main algorithm for Tile evolution -------------------------------------------
102 
103 ! - Zero out residuals --------------------------------------------------------
104 
105  CALL plag_injctilezerorhs( region )
106 
107 ! - Load old values -----------------------------------------------------------
108 
109  CALL plag_injctilerkinit( region, istage )
110 
111 ! finalize --------------------------------------------------------------------
112 
113  CALL deregisterfunction( global )
114 
115 END SUBROUTINE plag_rkinit
116 
117 !******************************************************************************
118 !
119 ! RCS Revision history:
120 !
121 ! $Log: PLAG_RkInit.F90,v $
122 ! Revision 1.5 2008/12/06 08:44:36 mtcampbe
123 ! Updated license.
124 !
125 ! Revision 1.4 2008/11/19 22:17:48 mtcampbe
126 ! Added Illinois Open Source License/Copyright
127 !
128 ! Revision 1.3 2005/05/19 16:02:20 fnajjar
129 ! Added calls to generic routines for initialization
130 !
131 ! Revision 1.2 2005/04/22 18:34:32 fnajjar
132 ! Removed IF statements to properly handle RK3 scheme
133 !
134 ! Revision 1.1 2004/12/01 20:58:16 fnajjar
135 ! Initial revision after changing case
136 !
137 ! Revision 1.8 2004/03/22 23:49:28 fnajjar
138 ! Removed RFLO-based ifdef for tile kernel
139 !
140 ! Revision 1.7 2004/03/05 22:09:04 jferry
141 ! created global variables for peul, plag, and inrt use
142 !
143 ! Revision 1.6 2004/02/26 21:02:21 haselbac
144 ! Commented out RFLO-specific tile init routines
145 !
146 ! Revision 1.5 2004/02/06 21:18:20 fnajjar
147 ! Initial Integration of Rocpart with Rocflu
148 !
149 ! Revision 1.4 2003/11/12 21:33:07 fnajjar
150 ! Moved FC computations to PLAG_RFLO_SetMetrics
151 !
152 ! Revision 1.3 2003/11/03 22:39:25 fnajjar
153 ! Added call to copy face vectors
154 !
155 ! Revision 1.2 2003/03/28 19:51:50 fnajjar
156 ! Included initialization step for tiles
157 !
158 ! Revision 1.1 2003/03/04 22:12:35 jferry
159 ! Initial import of Rocinteract
160 !
161 !
162 !******************************************************************************
163 
164 
165 
166 
167 
168 
169 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine plag_injctilezerorhs(region)
subroutine, public plag_rkinitprimary(region, iStage)
subroutine, public plag_injctilerkinit(region, iStage)
subroutine plag_rkinit(region, iStage)
Definition: PLAG_RkInit.F90:43
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine plag_zerorhs(region)