Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ReadPrepSection.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 in user input related to preprocessor.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! global Pointer to global type
31 !
32 ! Output: None.
33 !
34 ! Notes: none.
35 !
36 ! ******************************************************************************
37 !
38 ! $Id: ReadPrepSection.F90,v 1.4 2008/12/06 08:44:10 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2003-2004 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE readprepsection(global)
45 
46  USE moddatatypes
47  USE modglobal, ONLY: t_global
48  USE modinterfaces, ONLY: readsection
49  USE moderror
50  USE modparameters
51 
52  IMPLICIT NONE
53 
54 ! ******************************************************************************
55 ! Declarations and definitions
56 ! ******************************************************************************
57 
58 ! ==============================================================================
59 ! Arguments
60 ! ==============================================================================
61 
62  TYPE(t_global), POINTER :: global
63 
64 ! ==============================================================================
65 ! Locals
66 ! ==============================================================================
67 
68  INTEGER, PARAMETER :: nvals_max = 1
69 
70  LOGICAL :: defined(nvals_max)
71  CHARACTER(10) :: keys(nvals_max)
72  CHARACTER(CHRLEN) :: rcsidentstring
73  INTEGER :: nvals
74  REAL(RFREAL) :: vals(nvals_max)
75 
76 ! ******************************************************************************
77 ! Start
78 ! ******************************************************************************
79 
80  rcsidentstring = '$RCSfile: ReadPrepSection.F90,v $ $Revision: 1.4 $'
81 
82  CALL registerfunction(global,'ReadPrepSection',&
83  'ReadPrepSection.F90')
84 
85 ! ******************************************************************************
86 ! Specify keywords and search for them
87 ! ******************************************************************************
88 
89 #ifdef RFLU
90  nvals = nvals_max
91 
92  keys(1) = 'PARTMODE'
93 
94  CALL readsection(global,if_input,nvals,keys,vals,defined)
95 
96  IF ( defined(1) .EQV. .true. ) THEN
97  IF ( nint(vals(1)) == partition_mode_proper ) THEN
98  global%prepPartMode = partition_mode_proper
99  ELSE
100  global%prepPartMode = partition_mode_imposed
101  END IF ! NINT(vals)
102  END IF ! defined
103 #endif
104 
105 ! ******************************************************************************
106 ! End
107 ! ******************************************************************************
108 
109  CALL deregisterfunction(global)
110 
111 END SUBROUTINE readprepsection
112 
113 ! ******************************************************************************
114 !
115 ! RCS Revision history:
116 !
117 ! $Log: ReadPrepSection.F90,v $
118 ! Revision 1.4 2008/12/06 08:44:10 mtcampbe
119 ! Updated license.
120 !
121 ! Revision 1.3 2008/11/19 22:17:23 mtcampbe
122 ! Added Illinois Open Source License/Copyright
123 !
124 ! Revision 1.2 2006/04/07 15:19:15 haselbac
125 ! Removed tabs
126 !
127 ! Revision 1.1 2004/12/01 16:50:41 haselbac
128 ! Initial revision after changing case
129 !
130 ! Revision 1.7 2004/10/19 19:25:47 haselbac
131 ! Removed SURFFLAG, cosmetics
132 !
133 ! Revision 1.6 2003/08/07 15:29:01 haselbac
134 ! Changed var names
135 !
136 ! Revision 1.5 2003/05/16 02:27:43 haselbac
137 ! Removed KIND=RFREAL from NINT statements
138 !
139 ! Revision 1.4 2003/05/07 00:21:40 haselbac
140 ! Changed logic for check
141 !
142 ! Revision 1.3 2003/05/01 14:06:40 haselbac
143 ! Fixed bug: Did not update properly
144 !
145 ! Revision 1.2 2003/04/29 21:47:37 haselbac
146 ! Added SURFFLAG
147 !
148 ! Revision 1.1 2003/04/29 14:55:48 haselbac
149 ! Initial revision
150 !
151 ! ******************************************************************************
152 
153 
154 
155 
156 
157 
158 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine readsection(global, fileID, nvals, keys, vals, defined)
subroutine readprepsection(global)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE USE ModDataTypes USE nvals
subroutine deregisterfunction(global)
Definition: ModError.F90:469