Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
utilities/rocflu/conv/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.7 2008/12/06 08:44:55 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2003-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 $'
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,' rfluconv '
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 #ifdef PLAG
125  WRITE(stdout,'(A)') solver_name
126  WRITE(stdout,'(A,1X,A)') solver_name,'Compiled with particle module'
127  CALL plag_buildversionstring(headerstring)
128  WRITE(stdout,'(A,1X,A)') solver_name,trim(headerstring)
129 #endif
130 
131 #ifdef SPEC
132  WRITE(stdout,'(A)') solver_name
133  WRITE(stdout,'(A,1X,A)') solver_name,'Compiled with species module'
134  CALL spec_buildversionstring(headerstring)
135  WRITE(stdout,'(A,1X,A)') solver_name,trim(headerstring)
136 #endif
137 
138  WRITE(stdout,'(A)') solver_name
139 
140 ! ******************************************************************************
141 ! End
142 ! ******************************************************************************
143 
144  CALL deregisterfunction(global)
145 
146 END SUBROUTINE rflu_printheader
147 
148 ! ******************************************************************************
149 !
150 ! RCS Revision history:
151 !
152 ! $Log: RFLU_PrintHeader.F90,v $
153 ! Revision 1.7 2008/12/06 08:44:55 mtcampbe
154 ! Updated license.
155 !
156 ! Revision 1.6 2008/11/19 22:18:05 mtcampbe
157 ! Added Illinois Open Source License/Copyright
158 !
159 ! Revision 1.5 2005/05/03 03:08:34 haselbac
160 ! Changed header
161 !
162 ! Revision 1.4 2004/12/02 15:27:22 haselbac
163 ! Added printing of module version strings, cosmetics
164 !
165 ! Revision 1.3 2003/11/25 21:01:05 haselbac
166 ! Cosmetic changes only
167 !
168 ! Revision 1.2 2003/03/20 19:53:36 haselbac
169 ! Modified RegFun call to avoid probs with
170 ! long 'RFLU_PrintHeader.F90' names
171 !
172 ! Revision 1.1.1.1 2003/03/19 17:22:22 haselbac
173 ! Initial revision
174 !
175 ! ******************************************************************************
176 
177 
178 
179 
180 
181 
182 
183 
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)