Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_WriteSpecialCells.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_WriteSpecialCells.F90,v 1.3 2008/12/06 08:44:54 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2003 by the University of Illinois
41 !
42 !******************************************************************************
43 
44 SUBROUTINE rflu_writespecialcells(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
72  TYPE(t_global), POINTER :: global
73  TYPE(t_grid), POINTER :: pgrid
74 
75 ! ******************************************************************************
76 ! Start
77 ! ******************************************************************************
78 
79  rcsidentstring = '$RCSfile: RFLU_WriteSpecialCells.F90,v $ $Revision: 1.3 $'
80 
81  global => pregion%global
82 
83  CALL registerfunction(global,'RFLU_WriteSpecialCells',&
84  'RFLU_WriteSpecialCells.F90')
85 
86  IF ( global%myProcid == masterproc .AND. &
87  global%verbLevel > verbose_none ) THEN
88  WRITE(stdout,'(A,1X,A)') solver_name,'Writing special cells...'
89  END IF ! global%verbLevel
90 
91 ! ******************************************************************************
92 ! Set grid pointer and variables
93 ! ******************************************************************************
94 
95  pgrid => pregion%grid
96 
97  ifile = if_spcells
98 
99 ! ******************************************************************************
100 ! Write to file
101 ! ******************************************************************************
102 
103  WRITE(ifile,'(I5.5)') pregion%iRegionGlobal
104  WRITE(ifile,'(I3)') pgrid%nCellsSpecial
105 
106  DO ics = 1,pgrid%nCellsSpecial
107  WRITE(ifile,'(I6)') pgrid%cellsSpecial(ics)
108  END DO ! ics
109 
110 ! *****************************************************************************
111 ! End
112 ! *****************************************************************************
113 
114  IF ( global%myProcid == masterproc .AND. &
115  global%verbLevel > verbose_none ) THEN
116  WRITE(stdout,'(A,1X,A)') solver_name,'Writing special cells done.'
117  END IF ! global%verbLevel
118 
119  CALL deregisterfunction(global)
120 
121 END SUBROUTINE rflu_writespecialcells
122 
123 ! ******************************************************************************
124 !
125 ! RCS Revision history:
126 !
127 ! $Log: RFLU_WriteSpecialCells.F90,v $
128 ! Revision 1.3 2008/12/06 08:44:54 mtcampbe
129 ! Updated license.
130 !
131 ! Revision 1.2 2008/11/19 22:18:04 mtcampbe
132 ! Added Illinois Open Source License/Copyright
133 !
134 ! Revision 1.1 2003/04/01 17:02:46 haselbac
135 ! Initial revision
136 !
137 ! ******************************************************************************
138 
139 
140 
141 
142 
143 
144 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_writespecialcells(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469