Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_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: None.
30 !
31 ! Output: None.
32 !
33 ! Notes: None.
34 !
35 ! ******************************************************************************
36 !
37 ! $Id: RFLU_UserInput.F90,v 1.6 2008/12/06 08:44:13 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2002-2005 by the University of Illinois
40 !
41 ! ******************************************************************************
42 
43 SUBROUTINE rflu_userinput(regions)
44 
45  USE modglobal, ONLY: t_global
46  USE moddatatypes
47  USE moddatastruct, ONLY: t_region
48  USE moderror
49  USE modparameters
50 
55 
56  IMPLICIT NONE
57 
58 ! ******************************************************************************
59 ! Declarations and definitions
60 ! ******************************************************************************
61 
62 ! ==============================================================================
63 ! Arguments
64 ! ==============================================================================
65 
66  TYPE(t_region), DIMENSION(:), POINTER :: regions
67 
68 ! ==============================================================================
69 ! Local variables
70 ! ==============================================================================
71 
72  CHARACTER(CHRLEN) :: rcsidentstring
73  TYPE(t_global), POINTER :: global
74 
75 ! ******************************************************************************
76 ! Start
77 ! ******************************************************************************
78 
79  rcsidentstring = '$RCSfile: RFLU_UserInput.F90,v $ $Revision: 1.6 $'
80 
81  global => regions(1)%global
82 
83  CALL registerfunction(global,'RFLU_UserInput',&
84  'RFLU_UserInput.F90')
85 
86 ! ******************************************************************************
87 ! Initialize, read input values, set derived values, and check
88 ! ******************************************************************************
89 
90  CALL rflu_initinputvalues(regions)
91  CALL readinputfile(regions)
92  CALL rflu_derivedinputvalues(regions)
93  CALL rflu_checkuserinput(regions)
94 
95 ! ******************************************************************************
96 ! End
97 ! ******************************************************************************
98 
99  CALL deregisterfunction(global)
100 
101 END SUBROUTINE rflu_userinput
102 
103 !******************************************************************************
104 !
105 ! RCS Revision history:
106 !
107 ! $Log: RFLU_UserInput.F90,v $
108 ! Revision 1.6 2008/12/06 08:44:13 mtcampbe
109 ! Updated license.
110 !
111 ! Revision 1.5 2008/11/19 22:17:26 mtcampbe
112 ! Added Illinois Open Source License/Copyright
113 !
114 ! Revision 1.4 2005/11/10 02:17:44 haselbac
115 ! Clean-up
116 !
117 ! Revision 1.3 2004/10/19 19:37:56 haselbac
118 ! Cosmetics only
119 !
120 ! Revision 1.2 2003/11/25 21:02:53 haselbac
121 ! Cosmetic changes only
122 !
123 ! Revision 1.1 2003/01/28 15:53:32 haselbac
124 ! Initial revision, moved from rocflu
125 !
126 ! Revision 1.4 2002/09/09 15:51:56 haselbac
127 ! global under regions, adapated interfaces
128 !
129 ! Revision 1.3 2002/08/18 02:31:32 wasistho
130 ! Added RFLU_CheckUserInput
131 !
132 ! Revision 1.2 2002/05/04 17:14:02 haselbac
133 ! Added call to RFLU_DerivedInputValues
134 !
135 ! Revision 1.1 2002/03/26 19:24:49 haselbac
136 ! Initial revision
137 !
138 !******************************************************************************
139 
140 
141 
142 
143 
144 
145 
subroutine rflu_initinputvalues(regions)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine readinputfile(regions)
subroutine rflu_checkuserinput(regions)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine rflu_userinput(regions)
subroutine rflu_derivedinputvalues(regions)