Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
utilities/rocflu/pick/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: None.
30 !
31 ! Output: None.
32 !
33 ! Notes: None.
34 !
35 ! ******************************************************************************
36 !
37 ! $Id: RFLU_PrintHeader.F90,v 1.6 2008/12/06 08:45:04 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2003-2004 by the University of Illinois
40 !
41 ! ******************************************************************************
42 
43 SUBROUTINE rflu_printheader(global)
44 
45  USE moddatatypes
46  USE moderror
47  USE modglobal, ONLY: t_global
48  USE modparameters
49 
51 
52  IMPLICIT NONE
53 
54 ! ******************************************************************************
55 ! Definitions and declarations
56 ! ******************************************************************************
57 
58 ! ==============================================================================
59 ! Arguments
60 ! ==============================================================================
61 
62  TYPE(t_global), POINTER :: global
63 
64 ! ==============================================================================
65 ! Locals
66 ! ==============================================================================
67 
68  CHARACTER(CHRLEN) :: headerstring,rcsidentstring,versionstring
69  INTEGER, PARAMETER :: headerwidth = 38
70  INTEGER :: margin,versionwidth
71 
72 ! ******************************************************************************
73 ! Start
74 ! ******************************************************************************
75 
76  rcsidentstring = '$RCSfile: RFLU_PrintHeader.F90,v $'
77 
78  CALL registerfunction(global,'RFLU_PrintHeader', &
79  'RFLU_PrintHeader.F90')
80 
81 ! ==============================================================================
82 ! Build version string
83 ! ==============================================================================
84 
85  CALL buildversionstring(versionstring)
86 
87 ! ==============================================================================
88 ! Build header string
89 ! ==============================================================================
90 
91  headerstring = ' '
92 
93  versionwidth = len_trim(versionstring)
94  margin = (headerwidth - versionwidth)/2 ! Note integer division
95 
96  headerstring(margin+1:margin+versionwidth) = versionstring(1:versionwidth)
97 
98 ! ==============================================================================
99 ! Print header
100 ! ==============================================================================
101 
102  WRITE(stdout,'(A)') solver_name
103  WRITE(stdout,'(A,1X,A)') solver_name,'======================================'
104  WRITE(stdout,'(A,1X,A)') solver_name,' '
105  WRITE(stdout,'(A,1X,A)') solver_name,' rflupick '
106  WRITE(stdout,'(A,1X,A)') solver_name,' '
107 
108  WRITE(stdout,'(A,1X,A)') solver_name,trim(headerstring)
109 
110  WRITE(stdout,'(A,1X,A)') solver_name,' Copyright (c) University of Illinois '
111  WRITE(stdout,'(A,1X,A)') solver_name,' '
112  WRITE(stdout,'(A,1X,A)') solver_name,'======================================'
113  WRITE(stdout,'(A)') solver_name
114 
115 
116 ! ******************************************************************************
117 ! End
118 ! ******************************************************************************
119 
120  CALL deregisterfunction(global)
121 
122 END SUBROUTINE rflu_printheader
123 
124 ! ******************************************************************************
125 !
126 ! RCS Revision history:
127 !
128 ! $Log: RFLU_PrintHeader.F90,v $
129 ! Revision 1.6 2008/12/06 08:45:04 mtcampbe
130 ! Updated license.
131 !
132 ! Revision 1.5 2008/11/19 22:18:15 mtcampbe
133 ! Added Illinois Open Source License/Copyright
134 !
135 ! Revision 1.4 2005/05/03 03:11:48 haselbac
136 ! Changed header
137 !
138 ! Revision 1.3 2004/12/02 15:27:37 haselbac
139 ! Added printing of module version strings, cosmetics
140 !
141 ! Revision 1.2 2003/11/25 21:03:42 haselbac
142 ! Cosmetic changes only
143 !
144 ! Revision 1.1.1.1 2003/06/04 22:31:20 haselbac
145 ! Initial revision
146 !
147 ! ******************************************************************************
148 
149 
150 
151 
152 
153 
154 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_printheader(global)
subroutine buildversionstring(versionString)
subroutine deregisterfunction(global)
Definition: ModError.F90:469