Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PLAG_UserInput.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: read user input and store it in the data structure.
26 ! Check user input.
27 !
28 ! Description: none.
29 !
30 ! Input: regions = dimensions and topology (finest grid).
31 !
32 ! Output: regions = dimensions, topology and user input on all grid levels.
33 !
34 ! Notes: none.
35 !
36 !******************************************************************************
37 !
38 ! $Id: PLAG_UserInput.F90,v 1.3 2008/12/06 08:44:36 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2002 by the University of Illinois
41 !
42 !******************************************************************************
43 
44 SUBROUTINE plag_userinput( regions )
45 
46  USE moddatatypes
47  USE moddatastruct, ONLY : t_region
48  USE modglobal, ONLY : t_global
53  USE moderror
54  USE modparameters
56  IMPLICIT NONE
57 
58 ! ... parameters
59  TYPE (t_region), POINTER :: regions(:)
60 
61 ! ... local variables
62  CHARACTER(CHRLEN) :: rcsidentstring, msg
63 
64  TYPE(t_global), POINTER :: global
65 
66 !******************************************************************************
67 
68  rcsidentstring = '$RCSfile: PLAG_UserInput.F90,v $ $Revision: 1.3 $'
69 
70  global => regions(1)%global
71 
72  CALL registerfunction( global, 'PLAG_UserInput',&
73  'PLAG_UserInput.F90' )
74 
75 ! Initialize parameters -------------------------------------------------------
76 
77  CALL plag_initinputvalues( regions )
78 
79 ! Read user input (global%plagUsed is set here) -------------------------------
80 
81  CALL plag_readinputfile( regions )
82 
83  IF (global%plagUsed) THEN
84 
85 ! Set derived user input ------------------------------------------------------
86 
87  CALL plag_derivedinputvalues( regions )
88 
89 ! Check user input ------------------------------------------------------------
90 
91  CALL plag_checkuserinput( regions )
92 
93  END IF ! plagUsed
94 
95 ! finalize --------------------------------------------------------------------
96 
97  CALL deregisterfunction( global )
98 
99 END SUBROUTINE plag_userinput
100 
101 !******************************************************************************
102 !
103 ! RCS Revision history:
104 !
105 ! $Log: PLAG_UserInput.F90,v $
106 ! Revision 1.3 2008/12/06 08:44:36 mtcampbe
107 ! Updated license.
108 !
109 ! Revision 1.2 2008/11/19 22:17:48 mtcampbe
110 ! Added Illinois Open Source License/Copyright
111 !
112 ! Revision 1.1 2004/12/01 20:58:19 fnajjar
113 ! Initial revision after changing case
114 !
115 ! Revision 1.5 2004/03/05 22:09:04 jferry
116 ! created global variables for peul, plag, and inrt use
117 !
118 ! Revision 1.4 2004/02/26 21:02:25 haselbac
119 ! Added call to set derived input values
120 !
121 ! Revision 1.3 2003/11/21 22:42:16 fnajjar
122 ! Added plagActive
123 !
124 ! Revision 1.2 2003/04/14 18:58:30 fnajjar
125 ! Added PLAG_InitInputValues call
126 !
127 ! Revision 1.1 2002/10/25 14:20:32 f-najjar
128 ! Initial Import of Rocpart
129 !
130 !******************************************************************************
131 
132 
133 
134 
135 
136 
137 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine plag_derivedinputvalues(regions)
subroutine plag_initinputvalues(regions)
subroutine plag_checkuserinput(regions)
subroutine plag_readinputfile(regions)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine plag_userinput(regions)