Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_WritePostInfo.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 file with special cells.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! pRegion Pointer to region data
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 ! ******************************************************************************
37 !
38 ! $Id: RFLU_WritePostInfo.F90,v 1.7 2008/12/06 08:45:04 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2003-2004 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE rflu_writepostinfo(pRegion)
45 
46  USE moddatatypes
47  USE moderror
48  USE moddatastruct, ONLY: t_region
49  USE modgrid, ONLY: t_grid
50  USE modglobal, ONLY: t_global
51  USE modparameters
52  USE modmpi
53 
54  IMPLICIT NONE
55 
56 ! ******************************************************************************
57 ! Definitions and declarations
58 ! ******************************************************************************
59 
60 ! ==============================================================================
61 ! Arguments
62 ! ==============================================================================
63 
64  TYPE(t_region), POINTER :: pregion
65 
66 ! ==============================================================================
67 ! Locals
68 ! ==============================================================================
69 
70  CHARACTER(CHRLEN) :: rcsidentstring
71  INTEGER :: ics,ifile,ifs
72  TYPE(t_global), POINTER :: global
73  TYPE(t_grid), POINTER :: pgrid
74 
75 ! ******************************************************************************
76 ! Start
77 ! ******************************************************************************
78 
79  rcsidentstring = '$RCSfile: RFLU_WritePostInfo.F90,v $ $Revision: 1.7 $'
80 
81  global => pregion%global
82 
83  CALL registerfunction(global,'RFLU_WritePostInfo',&
84  'RFLU_WritePostInfo.F90')
85 
86  IF ( global%myProcid == masterproc .AND. &
87  global%verbLevel > verbose_none ) THEN
88  WRITE(stdout,'(A,1X,A)') solver_name,'Writing post-processor info...'
89  WRITE(stdout,'(A,3X,A,1X,I5.5)') solver_name,'Global region:', &
90  pregion%iRegionGlobal
91  END IF ! global%myProcid
92 
93 ! ******************************************************************************
94 ! Set grid pointer and variables
95 ! ******************************************************************************
96 
97  pgrid => pregion%grid
98 
99  ifile = if_postinfo
100 
101 ! ******************************************************************************
102 ! Write to file
103 ! ******************************************************************************
104 
105  IF ( global%myProcid == masterproc .AND. &
106  global%verbLevel > verbose_low ) THEN
107  WRITE(stdout,'(A,5X,A,1X,I3)') solver_name,'Number of special cells:', &
108  pgrid%nCellsSpecial
109  WRITE(stdout,'(A,5X,A,1X,I3)') solver_name,'Number of special faces:', &
110  pgrid%nFacesSpecial
111  END IF ! global%myProcid
112 
113  WRITE(ifile,'(A,1X,I5.5)') '# Region',pregion%iRegionGlobal
114  WRITE(ifile,'(L1)') pregion%postActiveFlag
115 
116  IF ( pregion%postActiveFlag .EQV. .true. ) THEN
117  WRITE(ifile,*) pgrid%nCellsSpecial
118 
119  DO ics = 1,pgrid%nCellsSpecial
120  WRITE(ifile,*) pgrid%cellsSpecial(ics)
121  END DO ! ics
122 
123  WRITE(ifile,*) pgrid%nFacesSpecial
124 
125  DO ifs = 1,pgrid%nFacesSpecial
126  WRITE(ifile,*) pgrid%facesSpecial(1:2,ifs)
127  END DO ! ifs
128  END IF ! pRegion%postActiveFlag
129 
130 ! ******************************************************************************
131 ! End
132 ! ******************************************************************************
133 
134  IF ( global%myProcid == masterproc .AND. &
135  global%verbLevel > verbose_none ) THEN
136  WRITE(stdout,'(A,1X,A)') solver_name,'Writing post-processor info done.'
137  END IF ! global%verbLevel
138 
139  CALL deregisterfunction(global)
140 
141 END SUBROUTINE rflu_writepostinfo
142 
143 ! ******************************************************************************
144 !
145 ! RCS Revision history:
146 !
147 ! $Log: RFLU_WritePostInfo.F90,v $
148 ! Revision 1.7 2008/12/06 08:45:04 mtcampbe
149 ! Updated license.
150 !
151 ! Revision 1.6 2008/11/19 22:18:15 mtcampbe
152 ! Added Illinois Open Source License/Copyright
153 !
154 ! Revision 1.5 2004/09/27 01:40:14 haselbac
155 ! Added writing of special faces
156 !
157 ! Revision 1.4 2004/03/23 03:18:46 haselbac
158 ! Changed format statements
159 !
160 ! Revision 1.3 2004/03/15 21:10:09 haselbac
161 ! Fixed alignment
162 !
163 ! Revision 1.2 2003/08/07 15:35:50 haselbac
164 ! Changed var name, fixed small bug
165 !
166 ! Revision 1.1.1.1 2003/06/04 22:31:20 haselbac
167 ! Initial revision
168 !
169 ! ******************************************************************************
170 
171 
172 
173 
174 
175 
176 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_writepostinfo(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469