Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TFLU_PrintTofluInput.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 toFlu 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: TFLU_PrintTofluInput.F90,v 1.3 2008/12/06 08:44:53 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2001 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE printtofluinput( 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,'PrintTofluInput',&
66  'TFLU_PrintTofluInput.F90' )
67 
68 ! start -----------------------------------------------------------------------
69 
70  WRITE(stdout,1000) solver_name
71 
72  WRITE(stdout,1005) solver_name//' Actual Rocflo2Flu 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//' Rocflo grid format = ASCII'
78  ELSEIF (global%gridFormat == format_binary) THEN
79  WRITE(stdout,1030) solver_name//' Rocflo grid format = binary'
80  ELSEIF (global%gridFormat == format_hdf) THEN
81  WRITE(stdout,1030) solver_name//' HDF input grid format is not supported'
82  stop
83  ENDIF
84 
85 ! only ASCII Rocflu grid format is currently supported
86 
87  IF (global%solutFormat == format_ascii) THEN
88  WRITE(stdout,1030) solver_name//' Rocflu grid format = ASCII'
89  ELSE
90  WRITE(stdout,1030) solver_name//' Non ASCII Rocflu grid format is not supported yet'
91  stop
92  ENDIF
93 
94 ! repeat for all regions ------------------------------------------------------
95 
96  IF (global%verbLevel < verbose_high) goto 888
97 
98  DO ireg=1,global%nRegions
99  WRITE(stdout,1025) solver_name,ireg
100 
101 ! - dimensions
102 
103  WRITE(stdout,1005) solver_name//' Dimensions:'
104  WRITE(stdout,1015) solver_name//' icells ', &
105  regions(ireg)%levels(1)%grid%ipc
106  WRITE(stdout,1015) solver_name//' jcells ', &
107  regions(ireg)%levels(1)%grid%jpc
108  WRITE(stdout,1015) solver_name//' kcells ', &
109  regions(ireg)%levels(1)%grid%kpc
110  ENDDO ! iReg
111 
112 ! finish ----------------------------------------------------------------------
113 
114 888 CONTINUE
115 
116  WRITE(stdout,1035) solver_name
117 
118  CALL deregisterfunction( global )
119 
120 1000 FORMAT(/,a,1x,80('-'))
121 1005 FORMAT(/,a)
122 1010 FORMAT(a,' = ',i2)
123 1015 FORMAT(a,' = ',i8)
124 1020 FORMAT(a,' = ',e12.5)
125 1025 FORMAT(/,a,' Region ',i6,':')
126 1030 FORMAT(a)
127 1035 FORMAT(/,a,1x,80('-'),/)
128 
129 END SUBROUTINE printtofluinput
130 
131 !******************************************************************************
132 !
133 ! RCS Revision history:
134 !
135 ! $Log: TFLU_PrintTofluInput.F90,v $
136 ! Revision 1.3 2008/12/06 08:44:53 mtcampbe
137 ! Updated license.
138 !
139 ! Revision 1.2 2008/11/19 22:18:03 mtcampbe
140 ! Added Illinois Open Source License/Copyright
141 !
142 ! Revision 1.1 2004/12/03 02:59:30 wasistho
143 ! added prefix
144 !
145 ! Revision 1.1 2004/12/03 00:58:20 wasistho
146 ! lower to upper case
147 !
148 ! Revision 1.1.1.1 2004/08/17 01:41:39 wasistho
149 ! initial checkin
150 !
151 !
152 !******************************************************************************
153 
154 
155 
156 
157 
158 
159 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
void int int REAL * x
Definition: read.cpp:74
subroutine printtofluinput(regions)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
RT a() const
Definition: Line_2.h:140