Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
utilities/rocflu/post/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.11 2008/12/06 08:45:06 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.11 $'
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,' rflupost '
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.11 2008/12/06 08:45:06 mtcampbe
158 ! Updated license.
159 !
160 ! Revision 1.10 2008/11/19 22:18:17 mtcampbe
161 ! Added Illinois Open Source License/Copyright
162 !
163 ! Revision 1.9 2006/04/07 15:19:26 haselbac
164 ! Removed tabs
165 !
166 ! Revision 1.8 2005/05/03 03:12:11 haselbac
167 ! Changed header
168 !
169 ! Revision 1.7 2004/12/02 15:28:39 haselbac
170 ! Added printing of module version strings, cosmetics
171 !
172 ! Revision 1.6 2003/11/25 21:03:56 haselbac
173 ! Cosmetic changes only
174 !
175 ! Revision 1.5 2003/03/20 20:07:19 haselbac
176 ! Modified RegFun call to avoid probs with
177 ! long 'RFLU_PrintHeader.F90' names
178 !
179 ! Revision 1.4 2002/09/09 16:42:28 haselbac
180 ! global and mixtInput now under regions
181 !
182 ! Revision 1.3 2002/07/25 15:23:32 haselbac
183 ! Added output for CHECK_DATASTRUCT
184 !
185 ! Revision 1.2 2002/06/17 13:37:35 haselbac
186 ! Prefixed SOLVER_NAME to all screen output
187 !
188 ! Revision 1.1 2002/06/10 21:38:42 haselbac
189 ! Initial revision
190 !
191 ! ******************************************************************************
192 
193 
194 
195 
196 
197 
198 
199 
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)