Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
utilities/rocflu/cells/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.3 2008/12/06 08:44:54 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2003 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 
50  IMPLICIT NONE
51 
52 ! ... parameters
53  TYPE(t_global), POINTER :: global
54 
55 ! ... loop variables
56 
57 
58 ! ... local variables
59  CHARACTER(CHRLEN) :: headerstring,rcsidentstring,versionstring
60  INTEGER, PARAMETER :: headerwidth = 53
61  INTEGER :: margin,versionwidth
62 
63 !******************************************************************************
64 
65  rcsidentstring = '$RCSfile: RFLU_PrintHeader.F90,v $'
66 
67  CALL registerfunction(global,'RFLU_PrintHeader', &
68  'RFLU_PrintHeader.F90')
69 
70 ! Build version string --------------------------------------------------------
71 
72  CALL buildversionstring(versionstring)
73 
74 ! Build header string ---------------------------------------------------------
75 
76  headerstring = ' '
77 
78  versionwidth = len_trim(versionstring)
79  margin = (headerwidth - versionwidth)/2 ! Note integer division
80 
81  headerstring(margin+1:margin+versionwidth) = versionstring(1:versionwidth)
82 
83  headerstring(1:1) = '*'
84  headerstring(headerwidth:headerwidth) = '*'
85 
86 ! Print header ----------------------------------------------------------------
87 
88  WRITE(stdout,'(A)') solver_name
89  WRITE(stdout,'(A,1X,A)') solver_name,'*****************************************************'
90  WRITE(stdout,'(A,1X,A)') solver_name,'* *'
91  WRITE(stdout,'(A,1X,A)') solver_name,'* ROCFLU-MP: Special cell converter *'
92  WRITE(stdout,'(A,1X,A)') solver_name,'* ================================= *'
93  WRITE(stdout,'(A,1X,A)') solver_name,'* *'
94 
95  WRITE(stdout,'(A,1X,A)') solver_name,trim(headerstring)
96 
97  WRITE(stdout,'(A,1X,A)') solver_name,'* Copyright (c) by the University of Illinois *'
98  WRITE(stdout,'(A,1X,A)') solver_name,'* *'
99  WRITE(stdout,'(A,1X,A)') solver_name,'*****************************************************'
100  WRITE(stdout,'(A)') solver_name
101 
102 ! Done ------------------------------------------------------------------------
103 
104  CALL deregisterfunction(global)
105 
106 END SUBROUTINE rflu_printheader
107 
108 !******************************************************************************
109 !
110 ! RCS Revision history:
111 !
112 ! $Log: RFLU_PrintHeader.F90,v $
113 ! Revision 1.3 2008/12/06 08:44:54 mtcampbe
114 ! Updated license.
115 !
116 ! Revision 1.2 2008/11/19 22:18:04 mtcampbe
117 ! Added Illinois Open Source License/Copyright
118 !
119 ! Revision 1.1 2003/04/01 17:02:46 haselbac
120 ! Initial revision
121 !
122 ! Revision 1.2 2003/03/20 19:53:36 haselbac
123 ! Modified RegFun call to avoid probs with
124 ! long 'RFLU_PrintHeader.F90' names
125 !
126 ! Revision 1.1.1.1 2003/03/19 17:22:22 haselbac
127 ! Initial revision
128 !
129 !******************************************************************************
130 
131 
132 
133 
134 
135 
136 
137 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_printheader(global)
subroutine buildversionstring(versionString)
subroutine deregisterfunction(global)
Definition: ModError.F90:469