Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SPEC_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, store it in the data structure and check.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! regions Region data
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 ! ******************************************************************************
37 !
38 ! $Id: SPEC_UserInput.F90,v 1.5 2008/12/06 08:44:41 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2003-2005 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE spec_userinput(regions)
45 
46  USE modglobal, ONLY: t_global
47  USE moddatatypes
48  USE moddatastruct, ONLY: t_region
49  USE moderror
50  USE modparameters
51 
56 
57  IMPLICIT NONE
58 
59 ! ******************************************************************************
60 ! Definitions and declarations
61 ! ******************************************************************************
62 
63 ! ==============================================================================
64 ! Arguments
65 ! ==============================================================================
66 
67  TYPE(t_region), DIMENSION(:), POINTER :: regions
68 
69 ! ==============================================================================
70 ! Locals
71 ! ==============================================================================
72 
73  CHARACTER(CHRLEN) :: rcsidentstring
74  TYPE(t_global), POINTER :: global
75 
76 ! ******************************************************************************
77 ! Start
78 ! ******************************************************************************
79 
80  rcsidentstring = '$RCSfile: SPEC_UserInput.F90,v $ $Revision: 1.5 $'
81 
82  global => regions(1)%global
83 
84  CALL registerfunction(global,'SPEC_UserInput',&
85  'SPEC_UserInput.F90')
86 
87 ! ******************************************************************************
88 ! Initialize, read, set, and check user input for species
89 ! ******************************************************************************
90 
91  CALL spec_initinputvalues(regions)
92  CALL spec_readinputfile(regions) ! global%specUsed is set here
93 
94  IF ( global%specUsed .EQV. .true. ) THEN
95  CALL spec_derivedinputvalues(regions)
96  CALL spec_checkuserinput(regions)
97  END IF ! global%specUsed
98 
99 ! ******************************************************************************
100 ! End
101 ! ******************************************************************************
102 
103  CALL deregisterfunction(global)
104 
105 END SUBROUTINE spec_userinput
106 
107 ! ******************************************************************************
108 !
109 ! RCS Revision history:
110 !
111 ! $Log: SPEC_UserInput.F90,v $
112 ! Revision 1.5 2008/12/06 08:44:41 mtcampbe
113 ! Updated license.
114 !
115 ! Revision 1.4 2008/11/19 22:17:53 mtcampbe
116 ! Added Illinois Open Source License/Copyright
117 !
118 ! Revision 1.3 2005/11/10 02:39:24 haselbac
119 ! Clean-up
120 !
121 ! Revision 1.2 2004/07/28 15:29:21 jferry
122 ! created global variable for spec use
123 !
124 ! Revision 1.1 2003/11/25 21:08:37 haselbac
125 ! Initial revision
126 !
127 ! ******************************************************************************
128 
129 
130 
131 
132 
133 
134 
subroutine spec_checkuserinput(regions)
subroutine spec_derivedinputvalues(regions)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine spec_readinputfile(regions)
subroutine spec_userinput(regions)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine spec_initinputvalues(regions)