Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
INRT_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: initialize interaction data structure and get user input
26 !
27 ! Description: none
28 !
29 ! Input: regions
30 !
31 ! Output: regions with interactions initialized
32 !
33 ! Notes: regions must already have data about the multiphysics modules,
34 ! e.g., the number of smoke types and Lagrangian particle constituents
35 !
36 !******************************************************************************
37 !
38 ! $Id: INRT_UserInput.F90,v 1.3 2008/12/06 08:44:32 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2003 by the University of Illinois
41 !
42 !******************************************************************************
43 
44 SUBROUTINE inrt_userinput( regions ) ! PUBLIC
45 
46  USE moddatatypes
47  USE moddatastruct, ONLY : t_region
48  USE modglobal, ONLY : t_global
49  USE moderror
51 
54  IMPLICIT NONE
55 
56 ! ... parameters
57  TYPE (t_region), POINTER :: regions(:)
58 
59 ! ... loop variables
60  INTEGER :: ireg
61 
62 ! ... local variables
63  CHARACTER(CHRLEN) :: rcsidentstring
64  TYPE(t_global), POINTER :: global
65 
66 !******************************************************************************
67 
68  rcsidentstring = '$RCSfile: INRT_UserInput.F90,v $ $Revision: 1.3 $'
69 
70  global => regions(1)%global
71 
72  CALL registerfunction( global,'INRT_UserInput',&
73  'INRT_UserInput.F90' )
74 
75 ! begin -----------------------------------------------------------------------
76 
77  global%inrtUsed = (inrt_type_total > 0) .AND. &
78  (global%peulUsed .OR. global%specUsed .OR. global%plagUsed)
79 
80  IF (global%inrtUsed) THEN
81 
82 ! - initialize interactions
83 
84  DO ireg=lbound(regions,1),ubound(regions,1)
85  CALL inrt_initialize( regions(ireg) )
86  END DO ! iReg
87 
88 ! - read user input
89 
90  CALL inrt_readinputfile( regions ) ! can modify value of inrtUsed
91 
92  END IF ! inrtUsed
93 
94  IF (global%inrtUsed) THEN
95 
96 ! - Compute maximum number of discrete- and continuum-based Edges
97 
98  DO ireg=lbound(regions,1),ubound(regions,1)
99  CALL inrt_computemaxedges( regions(ireg) )
100  END DO ! iReg
101 
102 ! - check user input
103 
104  DO ireg=lbound(regions,1),ubound(regions,1)
105  CALL inrt_checkuserinput( regions(ireg) )
106  END DO ! iReg
107 
108  END IF ! inrtUsed
109 
110 ! finalize --------------------------------------------------------------------
111 
112  CALL deregisterfunction( global )
113 
114 END SUBROUTINE inrt_userinput
115 
116 !******************************************************************************
117 !
118 ! RCS Revision history:
119 !
120 ! $Log: INRT_UserInput.F90,v $
121 ! Revision 1.3 2008/12/06 08:44:32 mtcampbe
122 ! Updated license.
123 !
124 ! Revision 1.2 2008/11/19 22:17:44 mtcampbe
125 ! Added Illinois Open Source License/Copyright
126 !
127 ! Revision 1.1 2004/12/01 21:56:48 fnajjar
128 ! Initial revision after changing case
129 !
130 ! Revision 1.9 2004/07/28 15:29:20 jferry
131 ! created global variable for spec use
132 !
133 ! Revision 1.8 2004/07/26 17:05:51 fnajjar
134 ! moved allocation of inrtSources into Rocpart
135 !
136 ! Revision 1.7 2004/07/23 22:43:17 jferry
137 ! Integrated rocspecies into rocinteract
138 !
139 ! Revision 1.6 2004/03/05 22:09:03 jferry
140 ! created global variables for peul, plag, and inrt use
141 !
142 ! Revision 1.5 2004/03/02 21:49:23 jferry
143 ! Added inrtUsed flag to mixture data structure
144 !
145 ! Revision 1.4 2003/09/26 21:46:54 fnajjar
146 ! Modified ModInterfaces call to ModInterfacesInteract
147 !
148 ! Revision 1.3 2003/04/02 22:32:04 jferry
149 ! codified Activeness and Permission structures for rocinteract
150 !
151 ! Revision 1.2 2003/03/11 16:09:39 jferry
152 ! Added comments
153 !
154 ! Revision 1.1 2003/03/04 22:12:35 jferry
155 ! Initial import of Rocinteract
156 !
157 !******************************************************************************
158 
159 
160 
161 
162 
163 
164 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine inrt_computemaxedges(region)
subroutine inrt_userinput(regions)
subroutine inrt_checkuserinput(region)
subroutine inrt_initialize(region)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine inrt_readinputfile(regions)