Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PEUL_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: PEUL_UserInput.F90,v 1.3 2008/12/06 08:44:39 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2002 by the University of Illinois
41 !
42 !******************************************************************************
43 
44 SUBROUTINE peul_userinput( regions ) ! PUBLIC
45 
46  USE moddatatypes
47  USE modbndpatch, ONLY : t_patch
48  USE moddatastruct, ONLY : t_region
49  USE modglobal, ONLY : t_global
50  USE moderror
51  USE modparameters
52 
55  IMPLICIT NONE
56 
57 ! ... parameters
58  TYPE (t_region), POINTER :: regions(:)
59 
60 ! ... local variables
61  CHARACTER(CHRLEN) :: rcsidentstring
62 
63  TYPE(t_patch), POINTER :: patch
64  TYPE(t_global), POINTER :: global
65 
66 !******************************************************************************
67 
68  rcsidentstring = '$RCSfile: PEUL_UserInput.F90,v $ $Revision: 1.3 $'
69 
70  global => regions(1)%global
71 
72  CALL registerfunction( global,'PEUL_UserInput',&
73  'PEUL_UserInput.F90' )
74 
75 ! begin -----------------------------------------------------------------------
76 
77 ! initialize parameters
78 
79  CALL peul_initinputvalues( regions )
80 
81 ! read user input (global%peulUsed is set here)
82 
83  CALL peul_readinputfile( regions )
84 
85  IF (global%peulUsed) THEN
86 
87 ! - read boundary conditions
88 
89  CALL peul_readbcinputfile( regions )
90 
91 ! - set model & numerical parameters from user input
92 
93  CALL peul_derivedinputvalues( regions )
94 
95  END IF ! peulUsed
96 
97 ! finalize --------------------------------------------------------------------
98 
99  CALL deregisterfunction( global )
100 
101 END SUBROUTINE peul_userinput
102 
103 !******************************************************************************
104 !
105 ! RCS Revision history:
106 !
107 ! $Log: PEUL_UserInput.F90,v $
108 ! Revision 1.3 2008/12/06 08:44:39 mtcampbe
109 ! Updated license.
110 !
111 ! Revision 1.2 2008/11/19 22:17:52 mtcampbe
112 ! Added Illinois Open Source License/Copyright
113 !
114 ! Revision 1.1 2004/12/01 21:10:03 haselbac
115 ! Initial revision after changing case
116 !
117 ! Revision 1.4 2004/03/05 22:09:04 jferry
118 ! created global variables for peul, plag, and inrt use
119 !
120 ! Revision 1.3 2003/03/11 16:04:58 jferry
121 ! Created data type for material properties
122 !
123 ! Revision 1.2 2003/02/12 19:03:42 jferry
124 ! removed unused loop variables
125 !
126 ! Revision 1.1 2003/02/11 22:52:51 jferry
127 ! Initial import of Rocsmoke
128 !
129 !******************************************************************************
130 
131 
132 
133 
134 
135 
136 
subroutine peul_readbcinputfile(regions)
subroutine peul_derivedinputvalues(regions)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine peul_userinput(regions)
Definition: patch.h:74
subroutine peul_initinputvalues(regions)
subroutine peul_readinputfile(regions)
subroutine deregisterfunction(global)
Definition: ModError.F90:469