Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SPEC_InitInputValues.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 user input for species to default values.
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_InitInputValues.F90,v 1.7 2008/12/06 08:44:40 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2003-2005 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE spec_initinputvalues(regions)
45 
46  USE moddatatypes
47  USE modglobal, ONLY: t_global
48  USE modspecies, ONLY: t_spec_input
49  USE moddatastruct, ONLY: t_region
50  USE moderror
51  USE modparameters
52  USE modmpi
53 
54  IMPLICIT NONE
55 
56 ! ******************************************************************************
57 ! Declarations and definitions
58 ! ******************************************************************************
59 
60 ! ==============================================================================
61 ! Arguments
62 ! ==============================================================================
63 
64  TYPE(t_region), DIMENSION(:), POINTER :: regions
65 
66 ! ==============================================================================
67 ! Locals
68 ! ==============================================================================
69 
70  INTEGER :: ireg
71  CHARACTER(CHRLEN) :: rcsidentstring
72  TYPE(t_global), POINTER :: global
73 
74 ! ******************************************************************************
75 ! Start
76 ! ******************************************************************************
77 
78  rcsidentstring = '$RCSfile: SPEC_InitInputValues.F90,v $ $Revision: 1.7 $'
79 
80  global => regions(1)%global
81 
82  CALL registerfunction(global,'SPEC_InitInputValues',&
83  'SPEC_InitInputValues.F90')
84 
85 ! ******************************************************************************
86 ! Initialize
87 ! ******************************************************************************
88 
89  DO ireg = lbound(regions,1),ubound(regions,1)
90  regions(ireg)%specInput%usedFlag = .false.
91  regions(ireg)%specInput%nSpecies = 0
92  regions(ireg)%specInput%nSpeciesEE = 0
93  regions(ireg)%specInput%sourceFlag = .false.
94  END DO ! iReg
95 
96 ! ******************************************************************************
97 ! End
98 ! ******************************************************************************
99 
100  CALL deregisterfunction(global)
101 
102 END SUBROUTINE spec_initinputvalues
103 
104 ! ******************************************************************************
105 !
106 ! RCS Revision history:
107 !
108 ! $Log: SPEC_InitInputValues.F90,v $
109 ! Revision 1.7 2008/12/06 08:44:40 mtcampbe
110 ! Updated license.
111 !
112 ! Revision 1.6 2008/11/19 22:17:52 mtcampbe
113 ! Added Illinois Open Source License/Copyright
114 !
115 ! Revision 1.5 2005/11/27 01:54:17 haselbac
116 ! Added init for nSpeciesEE, cosmetics
117 !
118 ! Revision 1.4 2005/04/20 14:44:36 haselbac
119 ! Removed setting of unifSpec
120 !
121 ! Revision 1.3 2004/07/28 15:31:34 jferry
122 ! added USED field to SPECIES input section
123 !
124 ! Revision 1.2 2004/04/01 21:31:37 haselbac
125 ! Added setting of sourceFlag
126 !
127 ! Revision 1.1 2003/11/25 21:08:37 haselbac
128 ! Initial revision
129 !
130 ! ******************************************************************************
131 
132 
133 
134 
135 
136 
137 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine spec_initinputvalues(regions)