Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rocflu/RFLU_PrintHeader.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 header including version number and date.
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: RFLU_PrintHeader.F90,v 1.19 2008/12/06 08:44:30 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2002-2005 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE rflu_printheader(global)
45 
46  USE moddatatypes
47  USE moderror
48  USE modglobal, ONLY: t_global
49  USE modparameters
50 
52 
53 #ifdef PLAG
55 #endif
56 
57 #ifdef SPEC
59 #endif
60 
61 #ifdef TURB
63 #endif
64 
65  IMPLICIT NONE
66 
67 ! ******************************************************************************
68 ! Definitions and declarations
69 ! ******************************************************************************
70 
71 ! ==============================================================================
72 ! Arguments
73 ! ==============================================================================
74 
75  TYPE(t_global), POINTER :: global
76 
77 ! ==============================================================================
78 ! Locals
79 ! ==============================================================================
80 
81  CHARACTER(CHRLEN) :: headerstring,rcsidentstring,versionstring
82  INTEGER, PARAMETER :: headerwidth = 38
83  INTEGER :: margin,versionwidth
84 
85 ! ******************************************************************************
86 ! Start
87 ! ******************************************************************************
88 
89  rcsidentstring = '$RCSfile: RFLU_PrintHeader.F90,v $ $Revision: 1.19 $'
90 
91  CALL registerfunction(global,'RFLU_PrintHeader',&
92  'RFLU_PrintHeader.F90')
93 
94 ! ==============================================================================
95 ! Build version string
96 ! ==============================================================================
97 
98  CALL buildversionstring(versionstring)
99 
100 ! ==============================================================================
101 ! Build header string
102 ! ==============================================================================
103 
104  headerstring = ' '
105 
106  versionwidth = len_trim(versionstring)
107  margin = (headerwidth - versionwidth)/2 ! Note integer division
108 
109  headerstring(margin+1:margin+versionwidth) = versionstring(1:versionwidth)
110 
111 
112 ! ==============================================================================
113 ! Print header
114 ! ==============================================================================
115 
116  WRITE(stdout,'(A)') solver_name
117  WRITE(stdout,'(A,1X,A)') solver_name,'======================================='
118  WRITE(stdout,'(A,1X,A)') solver_name,' '
119  WRITE(stdout,'(A,1X,A)') solver_name,' RocfluidMP '
120  WRITE(stdout,'(A,1X,A)') solver_name,' '
121 
122 ! WRITE(STDOUT,'(A,1X,A)') SOLVER_NAME,TRIM(headerString)
123 
124  WRITE(stdout,'(A,1X,A,A)') solver_name,'Copyright (C) 2015 Illinois Rocstar',&
125  ' LLC.'
126  WRITE(stdout,'(A,1X,A)') solver_name,' '
127  WRITE(stdout,'(A,1X,A)') solver_name,'======================================='
128  WRITE(stdout,'(A)') solver_name
129 
130 ! ==============================================================================
131 ! Write out messages from conditional compilation
132 ! ==============================================================================
133 
134 #ifdef STATS
135  WRITE(stdout,'(A)') solver_name
136  WRITE(stdout,'(A,1X,A)') solver_name,'###############################'
137  WRITE(stdout,'(A,1X,A)') solver_name,'Compiled with statistics module'
138  WRITE(stdout,'(A,1X,A)') solver_name,'###############################'
139 #endif
140 
141 #ifdef PLAG
142  WRITE(stdout,'(A)') solver_name
143  WRITE(stdout,'(A,1X,A)') solver_name,'Compiled with particle module'
144  CALL plag_buildversionstring(headerstring)
145  WRITE(stdout,'(A,1X,A)') solver_name,trim(headerstring)
146 #endif
147 
148 #ifdef SPEC
149  WRITE(stdout,'(A)') solver_name
150  WRITE(stdout,'(A,1X,A)') solver_name,'Compiled with species module'
151  CALL spec_buildversionstring(headerstring)
152  WRITE(stdout,'(A,1X,A)') solver_name,trim(headerstring)
153 #endif
154 
155 #ifdef TURB
156  WRITE(stdout,'(A)') solver_name
157  WRITE(stdout,'(A,1X,A)') solver_name,'Compiled with turbulence module'
158  CALL turb_buildversionstring(headerstring)
159  WRITE(stdout,'(A,1X,A)') solver_name,trim(headerstring)
160 #endif
161 
162  WRITE(stdout,'(A)') solver_name
163 
164 ! ******************************************************************************
165 ! End
166 ! ******************************************************************************
167 
168  CALL deregisterfunction(global)
169 
170 END SUBROUTINE rflu_printheader
171 
172 ! ******************************************************************************
173 !
174 ! RCS Revision history:
175 !
176 ! $Log: RFLU_PrintHeader.F90,v $
177 ! Revision 1.19 2008/12/06 08:44:30 mtcampbe
178 ! Updated license.
179 !
180 ! Revision 1.18 2008/11/19 22:17:43 mtcampbe
181 ! Added Illinois Open Source License/Copyright
182 !
183 ! Revision 1.17 2005/05/03 03:06:11 haselbac
184 ! Changed header
185 !
186 ! Revision 1.16 2005/04/20 14:43:34 haselbac
187 ! Removed CHECK_UNIFLOW code section
188 !
189 ! Revision 1.15 2004/12/02 15:26:38 haselbac
190 ! Added printing of module version strings, removed some stuff
191 !
192 ! Revision 1.14 2004/11/03 17:05:34 haselbac
193 ! Removed HACK_PERIODIC ifdef, cosmetics
194 !
195 ! Revision 1.13 2004/02/02 22:51:44 haselbac
196 ! Added writing of header for particles
197 !
198 ! Revision 1.12 2003/11/25 21:04:43 haselbac
199 ! Added support for rocspecies, cosmetic changes
200 !
201 ! Revision 1.11 2003/03/15 18:52:45 haselbac
202 ! Cosmetics only
203 !
204 ! Revision 1.10 2002/10/27 19:16:30 haselbac
205 ! Removed tabs
206 !
207 ! Revision 1.9 2002/09/09 15:51:56 haselbac
208 ! global now under region
209 !
210 ! Revision 1.8 2002/07/25 14:33:20 haselbac
211 ! Added messages for checking of gradients and periodic hack
212 !
213 ! Revision 1.7 2002/07/24 17:31:08 wasistho
214 ! Added Rocturb header
215 !
216 ! Revision 1.6 2002/06/27 16:30:32 haselbac
217 ! Added statement for CHECK_DATASTRUCT
218 !
219 ! Revision 1.5 2002/06/17 16:09:45 wasistho
220 ! Added STATS compilation message
221 !
222 ! Revision 1.4 2002/06/17 13:54:24 haselbac
223 ! Cosmetic change, added SOLVER_NAME, added message for STATS
224 !
225 ! Revision 1.3 2002/06/17 13:34:12 haselbac
226 ! Prefixed SOLVER_NAME to all screen output
227 !
228 ! Revision 1.2 2002/06/14 21:54:35 wasistho
229 ! Added time avg statistics
230 !
231 ! Revision 1.1 2002/06/10 21:28:09 haselbac
232 ! Initial revision
233 !
234 ! ******************************************************************************
235 
236 
237 
238 
239 
240 
241 
subroutine turb_buildversionstring(versionString)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_printheader(global)
subroutine buildversionstring(versionString)
subroutine spec_buildversionstring(versionString)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine plag_buildversionstring(versionString)