Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PREP_PrintPrepInput.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: print on screen prep input for checking purposes.
26 !
27 ! Description: none.
28 !
29 ! Input: regions = user input.
30 !
31 ! Output: to standard output.
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: PREP_PrintPrepInput.F90,v 1.3 2008/12/06 08:44:50 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2001 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE printprepinput( regions )
44 
45  USE moddatatypes
46  USE moddatastruct, ONLY : t_region
47  USE modglobal, ONLY : t_global
48  USE moderror
49  USE modparameters
50  IMPLICIT NONE
51 
52 ! ... parameters
53  TYPE(t_region), POINTER :: regions(:)
54 
55 ! ... loop variables
56  INTEGER :: ireg
57 
58 ! ... local variables
59  TYPE(t_global), POINTER :: global
60 
61 !******************************************************************************
62 
63  global => regions(1)%global
64 
65  CALL registerfunction( global,'PrintPrepInput',&
66  'PREP_PrintPrepInput.F90' )
67 
68 ! start -----------------------------------------------------------------------
69 
70  WRITE(stdout,1000) solver_name
71 
72  WRITE(stdout,1005) solver_name//' Actual rocflo-prep input selected:'
73  WRITE(stdout,1030) solver_name//' '
74  WRITE(stdout,1015) solver_name//' Grid level ',global%startLevel
75 
76  IF (global%gridFormat == format_ascii) THEN
77  WRITE(stdout,1030) solver_name//' Input grid format = ASCII'
78  ELSEIF (global%gridFormat == format_binary) THEN
79  WRITE(stdout,1030) solver_name//' Input grid format = binary'
80  ELSEIF (global%gridFormat == format_hdf) THEN
81  WRITE(stdout,1030) solver_name//' Input grid format = HDF'
82  ENDIF
83 
84  IF (global%solutFormat == format_ascii) THEN
85  WRITE(stdout,1030) solver_name//' Output solution format = ASCII'
86  ELSEIF (global%solutFormat == format_binary) THEN
87  WRITE(stdout,1030) solver_name//' Output solution format = binary'
88  ELSEIF (global%solutFormat == format_hdf) THEN
89  WRITE(stdout,1030) solver_name//' Output solution format = HDF'
90  ENDIF
91 
92  IF (global%flowType == flow_steady) THEN
93  WRITE(stdout,1030) solver_name//' Flow type = steady'
94  ELSE
95  WRITE(stdout,1030) solver_name//' Flow type = unsteady'
96  ENDIF
97 
98  WRITE(stdout,1020) solver_name//' Reference gamma ',global%refGamma
99 
100 ! repeat for all regions ------------------------------------------------------
101 
102  IF (global%verbLevel < verbose_high) goto 888
103 
104  DO ireg=1,global%nRegions
105  WRITE(stdout,1025) solver_name,ireg
106 
107 ! - dimensions
108 
109  WRITE(stdout,1005) solver_name//' Dimensions:'
110  WRITE(stdout,1015) solver_name//' icells ',regions(ireg)%levels(1)%grid%ipc
111  WRITE(stdout,1015) solver_name//' jcells ',regions(ireg)%levels(1)%grid%jpc
112  WRITE(stdout,1015) solver_name//' kcells ',regions(ireg)%levels(1)%grid%kpc
113  WRITE(stdout,1015) solver_name//' dummy cells ',regions(ireg)%nDumCells
114 
115 ! - initial solution
116 
117  WRITE(stdout,1005) solver_name//' Initial solution:'
118  WRITE(stdout,1020) solver_name//' density ',regions(ireg)%mixtInput%iniDens
119  WRITE(stdout,1020) solver_name//' x-velocity ',regions(ireg)%mixtInput%iniVelX
120  WRITE(stdout,1020) solver_name//' y-velocity ',regions(ireg)%mixtInput%iniVelY
121  WRITE(stdout,1020) solver_name//' z-velocity ',regions(ireg)%mixtInput%iniVelZ
122  WRITE(stdout,1020) solver_name//' pressure ',regions(ireg)%mixtInput%iniPress
123 
124  ENDDO ! iReg
125 
126 ! finish ----------------------------------------------------------------------
127 
128 888 CONTINUE
129 
130  WRITE(stdout,1035) solver_name
131 
132  CALL deregisterfunction( global )
133 
134 1000 FORMAT(/,a,1x,80('-'))
135 1005 FORMAT(/,a)
136 1010 FORMAT(a,' = ',i2)
137 1015 FORMAT(a,' = ',i8)
138 1020 FORMAT(a,' = ',e12.5)
139 1025 FORMAT(/,a,' Region ',i6,':')
140 1030 FORMAT(a)
141 1035 FORMAT(/,a,1x,80('-'),/)
142 
143 END SUBROUTINE printprepinput
144 
145 !******************************************************************************
146 !
147 ! RCS Revision history:
148 !
149 ! $Log: PREP_PrintPrepInput.F90,v $
150 ! Revision 1.3 2008/12/06 08:44:50 mtcampbe
151 ! Updated license.
152 !
153 ! Revision 1.2 2008/11/19 22:18:00 mtcampbe
154 ! Added Illinois Open Source License/Copyright
155 !
156 ! Revision 1.1 2004/12/03 02:20:08 wasistho
157 ! added prefix
158 !
159 ! Revision 1.1 2004/12/03 00:40:49 wasistho
160 ! lower to upper case
161 !
162 ! Revision 1.2 2004/07/28 01:47:08 wasistho
163 ! cosmetics and cleanup
164 !
165 ! Revision 1.1 2004/07/27 03:39:05 wasistho
166 ! initial import genxWriteRocinout and printPrepInput
167 !
168 !
169 !******************************************************************************
170 
171 
172 
173 
174 
175 
176 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
void int int REAL * x
Definition: read.cpp:74
subroutine printprepinput(regions)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
RT a() const
Definition: Line_2.h:140