Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_ClosePostInfo.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: Close file with information for rflupost.
26 !
27 ! Description: None.
28 !
29 ! Input: None.
30 !
31 ! Output: None.
32 !
33 ! Notes: None.
34 !
35 ! ******************************************************************************
36 !
37 ! $Id: RFLU_ClosePostInfo.F90,v 1.5 2008/12/06 08:44:11 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2003 by the University of Illinois
40 !
41 ! ******************************************************************************
42 
43 SUBROUTINE rflu_closepostinfo(global)
44 
45  USE moddatatypes
46  USE moderror
47  USE modglobal, ONLY : t_global
48  USE modmpi
49  USE modparameters
50 
52 
53  IMPLICIT NONE
54 
55 ! ******************************************************************************
56 ! Declarations and definitions
57 ! ******************************************************************************
58 
59 ! ==============================================================================
60 ! Arguments
61 ! ==============================================================================
62 
63  TYPE(t_global), POINTER :: global
64 
65 ! ==============================================================================
66 ! Locals
67 ! ==============================================================================
68 
69  CHARACTER(CHRLEN) :: ifilename,rcsidentstring
70  INTEGER :: errorflag
71 
72 ! ******************************************************************************
73 ! Start
74 ! ******************************************************************************
75 
76  rcsidentstring = '$RCSfile: RFLU_ClosePostInfo.F90,v $ $Revision: 1.5 $'
77 
78  CALL registerfunction(global,'RFLU_ClosePostInfo',&
79  'RFLU_ClosePostInfo.F90')
80 
81  IF ( global%myProcid == masterproc .AND. &
82  global%verbLevel > verbose_none ) THEN
83  WRITE(stdout,'(A,1X,A)') solver_name,'Closing post-processor info file...'
84  END IF ! global%verbLevel
85 
86 ! ******************************************************************************
87 ! Close file
88 ! ******************************************************************************
89 
90  IF ( global%myProcid == masterproc ) THEN
91  CALL buildfilenameplain(global,filedest_outdir,'.inf',ifilename)
92 
93  CLOSE(if_postinfo,iostat=errorflag)
94  global%error = errorflag
95  IF ( global%error /= 0 ) THEN
96  CALL errorstop(global,err_file_close,__line__,'File: '//trim(ifilename))
97  END IF ! global%error
98  END IF ! global%myProcid
99 
100 ! ******************************************************************************
101 ! End
102 ! ******************************************************************************
103 
104  IF ( global%myProcid == masterproc .AND. &
105  global%verbLevel > verbose_none ) THEN
106  WRITE(stdout,'(A,1X,A)') solver_name, &
107  'Closing post-processor info file done.'
108  END IF ! global%verbLevel
109 
110  CALL deregisterfunction(global)
111 
112 END SUBROUTINE rflu_closepostinfo
113 
114 ! ******************************************************************************
115 !
116 ! RCS Revision history:
117 !
118 ! $Log: RFLU_ClosePostInfo.F90,v $
119 ! Revision 1.5 2008/12/06 08:44:11 mtcampbe
120 ! Updated license.
121 !
122 ! Revision 1.4 2008/11/19 22:17:25 mtcampbe
123 ! Added Illinois Open Source License/Copyright
124 !
125 ! Revision 1.3 2004/06/16 20:00:15 haselbac
126 ! Added use of ModBuildFileNames, cosmetics
127 !
128 ! Revision 1.2 2003/06/20 22:33:33 haselbac
129 ! Corrected comment
130 !
131 ! Revision 1.1 2003/06/04 22:24:29 haselbac
132 ! Initial revision
133 !
134 ! ******************************************************************************
135 
136 
137 
138 
139 
140 
141 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine buildfilenameplain(global, dest, ext, fileName)
subroutine rflu_closepostinfo(global)
subroutine errorstop(global, errorCode, errorLine, addMessage)
Definition: ModError.F90:483
subroutine deregisterfunction(global)
Definition: ModError.F90:469