Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PLAG_RFLU_InitSolSerialWrapper.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 initialization of particle solution in serial region.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! pRegion Pointer to serial region
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 ! ******************************************************************************
37 !
38 ! $Id: PLAG_RFLU_InitSolSerialWrapper.F90,v 1.3 2008/12/06 08:44:35 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2007 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE plag_rflu_initsolserialwrapper(pRegion)
45 
46  USE moddatatypes
47  USE moderror
48  USE moddatastruct, ONLY: t_region
49  USE modglobal, ONLY: t_global
50  USE modparameters
51 
54 
55  IMPLICIT NONE
56 
57 ! ******************************************************************************
58 ! Declarations and definitions
59 ! ******************************************************************************
60 
61 ! ==============================================================================
62 ! Arguments
63 ! ==============================================================================
64 
65  TYPE(t_region), POINTER :: pregion
66 
67 ! ==============================================================================
68 ! Locals
69 ! ==============================================================================
70 
71  CHARACTER(CHRLEN) :: rcsidentstring
72  TYPE(t_global), POINTER :: global
73 
74 ! ******************************************************************************
75 ! Start
76 ! ******************************************************************************
77 
78  rcsidentstring = &
79  '$RCSfile: PLAG_RFLU_InitSolSerialWrapper.F90,v $ $Revision: 1.3 $'
80 
81  global => pregion%global
82 
83  CALL registerfunction(global,'PLAG_RFLU_InitSolSerialWrapper', &
84  'PLAG_RFLU_InitSolSerialWrapper.F90')
85 
86 ! ******************************************************************************
87 ! Call appropriate routines
88 ! ******************************************************************************
89 
90  SELECT CASE ( pregion%mixtInput%dimens )
91  CASE ( 1 )
92  CALL plag_rflu_initsolserial_1d(pregion)
93  CASE ( 2,3 )
94  CALL plag_rflu_initsolserial_3d(pregion)
95  CASE default
96  CALL errorstop(global,err_reached_default,__line__)
97  END SELECT ! pRegion%mixtInput%dimens
98 
99 ! ******************************************************************************
100 ! End
101 ! ******************************************************************************
102 
103  CALL deregisterfunction(global)
104 
105 END SUBROUTINE plag_rflu_initsolserialwrapper
106 
107 ! ******************************************************************************
108 !
109 ! RCS Revision history:
110 !
111 ! $Log: PLAG_RFLU_InitSolSerialWrapper.F90,v $
112 ! Revision 1.3 2008/12/06 08:44:35 mtcampbe
113 ! Updated license.
114 !
115 ! Revision 1.2 2008/11/19 22:17:47 mtcampbe
116 ! Added Illinois Open Source License/Copyright
117 !
118 ! Revision 1.1 2007/03/15 21:58:29 haselbac
119 ! Initial revision
120 !
121 ! ******************************************************************************
122 
123 
124 
125 
126 
127 
128 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine plag_rflu_initsolserial_3d(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
Definition: ModError.F90:483
subroutine plag_rflu_initsolserialwrapper(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine plag_rflu_initsolserial_1d(pRegion)