Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PERI_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 PERI user input and store it in PERI data structure.
26 !
27 ! Description: PERI simulation parameters are first set to default values.
28 ! They are then overruled by user input parameters. Based
29 ! on this, derived PERI variables are defined. Finally,
30 ! necessary checkings are performed against inconsistencies.
31 !
32 ! Input: regions = user input in all regions
33 !
34 ! Output: regions = PERI user input, parameters and derived variables
35 !
36 ! Notes: none.
37 !
38 !******************************************************************************
39 !
40 ! $Id: PERI_UserInput.F90,v 1.4 2008/12/06 08:44:36 mtcampbe Exp $
41 !
42 ! Copyright: (c) 2001 by the University of Illinois
43 !
44 !******************************************************************************
45 
46 SUBROUTINE peri_userinput( regions ) ! PUBLIC
47 
48  USE moddatastruct, ONLY : t_region
49  USE modglobal, ONLY : t_global
52  USE moderror
54  IMPLICIT NONE
55 
56 ! ... parameters
57  TYPE (t_region), POINTER :: regions(:)
58 
59 ! ... local variables
60  CHARACTER(CHRLEN) :: rcsidentstring
61  TYPE(t_global), POINTER :: global
62 
63 !******************************************************************************
64 
65  rcsidentstring = '$RCSfile: PERI_UserInput.F90,v $'
66 
67  global => regions(1)%global
68  CALL registerfunction( global,'PERI_UserInput',&
69  'PERI_UserInput.F90' )
70 
71 ! initialize parameters --------------------------------------------------
72 
73  CALL peri_initinputvalues( regions )
74 
75 ! read user input
76 
77  CALL peri_readinputfile( regions )
78 
79  IF (regions(1)%periInput%flowKind /= peri_flow_none) THEN
80 
81 ! - set PERI parameters from user input
82 
83  CALL peri_derivedinputvalues( regions )
84 
85 ! - check user input and parameters set in the code
86 
87  CALL peri_checkparaminput( regions )
88 
89  ENDIF ! periInput%flowModel
90 
91 ! finalize --------------------------------------------------------
92 
93  CALL deregisterfunction( global )
94 
95 END SUBROUTINE peri_userinput
96 
97 !******************************************************************************
98 !
99 ! RCS Revision history:
100 !
101 ! $Log: PERI_UserInput.F90,v $
102 ! Revision 1.4 2008/12/06 08:44:36 mtcampbe
103 ! Updated license.
104 !
105 ! Revision 1.3 2008/11/19 22:17:49 mtcampbe
106 ! Added Illinois Open Source License/Copyright
107 !
108 ! Revision 1.2 2004/06/11 21:49:40 wasistho
109 ! prepared for RFLU
110 !
111 ! Revision 1.1 2004/06/08 23:56:56 wasistho
112 ! changed nomenclature
113 !
114 ! Revision 1.1.1.1 2003/03/29 03:36:30 wasistho
115 ! install ROCPERI
116 !
117 !
118 !
119 !******************************************************************************
120 
121 
122 
123 
124 
125 
126 
subroutine peri_readinputfile(regions)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine peri_userinput(regions)
subroutine peri_initinputvalues(regions)
subroutine peri_checkparaminput(regions)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine peri_derivedinputvalues(regions)