Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
utilities/rocflu/part/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 data
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 ! ******************************************************************************
37 !
38 ! $Id: RFLU_PrintHeader.F90,v 1.4 2008/12/06 08:45:03 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2002-2004 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  IMPLICIT NONE
62 
63 ! ******************************************************************************
64 ! Definitions and declarations
65 ! ******************************************************************************
66 
67 ! ==============================================================================
68 ! Arguments
69 ! ==============================================================================
70 
71  TYPE(t_global), POINTER :: global
72 
73 ! ==============================================================================
74 ! Locals
75 ! ==============================================================================
76 
77  CHARACTER(CHRLEN) :: headerstring,rcsidentstring,versionstring
78  INTEGER, PARAMETER :: headerwidth = 38
79  INTEGER :: margin,versionwidth
80 
81 ! ******************************************************************************
82 ! Start
83 ! ******************************************************************************
84 
85  rcsidentstring = '$RCSfile: RFLU_PrintHeader.F90,v $ $Revision: 1.4 $'
86 
87  CALL registerfunction(global,'RFLU_PrintHeader', &
88  'RFLU_PrintHeader.F90')
89 
90 ! ==============================================================================
91 ! Build version string
92 ! ==============================================================================
93 
94  CALL buildversionstring(versionstring)
95 
96 ! ==============================================================================
97 ! Build header string
98 ! ==============================================================================
99 
100  headerstring = ' '
101 
102  versionwidth = len_trim(versionstring)
103  margin = (headerwidth - versionwidth)/2 ! Note integer division
104 
105  headerstring(margin+1:margin+versionwidth) = versionstring(1:versionwidth)
106 
107 ! ==============================================================================
108 ! Print header
109 ! ==============================================================================
110 
111  WRITE(stdout,'(A)') solver_name
112  WRITE(stdout,'(A,1X,A)') solver_name,'======================================'
113  WRITE(stdout,'(A,1X,A)') solver_name,' '
114  WRITE(stdout,'(A,1X,A)') solver_name,' rflupart '
115  WRITE(stdout,'(A,1X,A)') solver_name,' '
116 
117  WRITE(stdout,'(A,1X,A)') solver_name,trim(headerstring)
118 
119  WRITE(stdout,'(A,1X,A)') solver_name,' Copyright (c) University of Illinois '
120  WRITE(stdout,'(A,1X,A)') solver_name,' '
121  WRITE(stdout,'(A,1X,A)') solver_name,'======================================'
122  WRITE(stdout,'(A)') solver_name
123 
124 ! ==============================================================================
125 ! Write out messages from conditional compilation
126 ! ==============================================================================
127 
128 #ifdef PLAG
129  WRITE(stdout,'(A)') solver_name
130  WRITE(stdout,'(A,1X,A)') solver_name,'Compiled with particle module'
131  CALL plag_buildversionstring(headerstring)
132  WRITE(stdout,'(A,1X,A)') solver_name,trim(headerstring)
133 #endif
134 
135 #ifdef SPEC
136  WRITE(stdout,'(A)') solver_name
137  WRITE(stdout,'(A,1X,A)') solver_name,'Compiled with species module'
138  CALL spec_buildversionstring(headerstring)
139  WRITE(stdout,'(A,1X,A)') solver_name,trim(headerstring)
140 #endif
141 
142  WRITE(stdout,'(A)') solver_name
143 
144 ! ******************************************************************************
145 ! End
146 ! ******************************************************************************
147 
148  CALL deregisterfunction(global)
149 
150 END SUBROUTINE rflu_printheader
151 
152 ! ******************************************************************************
153 !
154 ! RCS Revision history:
155 !
156 ! $Log: RFLU_PrintHeader.F90,v $
157 ! Revision 1.4 2008/12/06 08:45:03 mtcampbe
158 ! Updated license.
159 !
160 ! Revision 1.3 2008/11/19 22:18:14 mtcampbe
161 ! Added Illinois Open Source License/Copyright
162 !
163 ! Revision 1.2 2005/05/03 03:11:18 haselbac
164 ! Changed header
165 !
166 ! Revision 1.1 2005/04/15 15:09:17 haselbac
167 ! Initial revision
168 !
169 ! Revision 1.10 2004/12/02 15:28:27 haselbac
170 ! Added printing of module version strings, cosmetics
171 !
172 ! Revision 1.9 2004/11/03 17:09:53 haselbac
173 ! Removed HACK_PERIODIC ifdef, cosmetics
174 !
175 ! Revision 1.8 2003/11/25 21:04:23 haselbac
176 ! Added rocspecies support, cosmetic changes
177 !
178 ! Revision 1.7 2003/04/28 22:48:09 haselbac
179 ! Removed output for HACK_SCALED
180 !
181 ! Revision 1.6 2003/03/20 20:02:32 haselbac
182 ! Modified RegFun call to avoid probs with
183 ! long 'RFLU_PrintHeader.F90' names
184 !
185 ! Revision 1.5 2002/10/27 19:23:26 haselbac
186 ! Added HACK_SCALED output header
187 !
188 ! Revision 1.4 2002/09/09 16:40:13 haselbac
189 ! global and mixtInput now under regions
190 !
191 ! Revision 1.3 2002/07/25 15:18:45 haselbac
192 ! Added statements for CHECK_DATASTRUCT and HACK_PERIODIC
193 !
194 ! Revision 1.2 2002/06/17 13:36:31 haselbac
195 ! Prefixed SOLVER_NAME to all screen output
196 !
197 ! Revision 1.1 2002/06/10 21:36:31 haselbac
198 ! Initial revision
199 !
200 ! ******************************************************************************
201 
202 
203 
204 
205 
206 
207 
208 
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)