Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_WriteStatsFileOLES.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: Write optimal LES statistics in ASCII ROCFLU format.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! region region data
31 !
32 ! Output: None.
33 !
34 ! Notes:
35 ! 1. Works only for single regions right now
36 !
37 !******************************************************************************
38 !
39 ! $Id: RFLU_WriteStatsFileOLES.F90,v 1.3 2008/12/06 08:44:30 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2001 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE rflu_writestatsfileoles(global)
46 
47  USE modglobal, ONLY: t_global
48  USE moddatatypes
49  USE modparameters
50  USE moderror
51 
52  IMPLICIT NONE
53 
54 ! ******************************************************************************
55 ! Declarations and definitions
56 ! ******************************************************************************
57 
58 ! ==============================================================================
59 ! Local variables
60 ! ==============================================================================
61 
62  CHARACTER(CHRLEN) :: rcsidentstring
63 
64 ! ==============================================================================
65 ! Arguments
66 ! ==============================================================================
67 
68  TYPE(t_global), POINTER :: global
69 
70 ! ******************************************************************************
71 ! Start, set pointer
72 ! ******************************************************************************
73 
74  rcsidentstring = '$RCSfile: RFLU_WriteStatsFileOLES.F90,v $ $Revision: 1.3 $'
75 
76  CALL registerfunction(global,'RFLU_WriteStatsFileOLES',&
77  'RFLU_WriteStatsFileOLES.F90')
78 
79 ! ******************************************************************************
80 ! Write data
81 ! ******************************************************************************
82 
83  WRITE(if_stats_oles,'(6(2X,E15.8))') &
84  global%currentTime,global%enerOLES,global%dissOLES, &
85  global%uVarOLES,global%vVarOLES,global%wVarOLES
86 
87  CALL deregisterfunction(global)
88 
89 ! ******************************************************************************
90 ! End
91 ! ******************************************************************************
92 
93 END SUBROUTINE rflu_writestatsfileoles
94 
95 
96 ! ******************************************************************************
97 !
98 ! RCS Revision history:
99 !
100 ! $Log: RFLU_WriteStatsFileOLES.F90,v $
101 ! Revision 1.3 2008/12/06 08:44:30 mtcampbe
102 ! Updated license.
103 !
104 ! Revision 1.2 2008/11/19 22:17:43 mtcampbe
105 ! Added Illinois Open Source License/Copyright
106 !
107 ! Revision 1.1 2002/09/09 16:28:02 haselbac
108 ! Initial revision
109 !
110 ! ******************************************************************************
111 
112 
113 
114 
115 
116 
117 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_writestatsfileoles(global)
subroutine deregisterfunction(global)
Definition: ModError.F90:469