Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_ReadConvGridWrapper.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: Read grid file and convert if necessary.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! pRegion Pointer to region
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 ! ******************************************************************************
37 !
38 ! $Id: RFLU_ReadConvGridWrapper.F90,v 1.3 2008/12/06 08:45:03 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2004 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE rflu_readconvgridwrapper(pRegion)
45 
46  USE moddatatypes
47  USE modparameters
48  USE moderror
49  USE modglobal, ONLY: t_global
50  USE moddatastruct, ONLY: t_region
51 
52  USE rflu_modcentaur
53  USE rflu_modcobalt
54  USE rflu_modgambit
55  USE rflu_modmesh3d
56  USE rflu_modtetmesh
57  USE rflu_modvgridns
58 
59 #ifdef GENX
62 #endif
63 
64  IMPLICIT NONE
65 
66 ! ******************************************************************************
67 ! Declarations and definitions
68 ! ******************************************************************************
69 
70 ! ==============================================================================
71 ! Arguments
72 ! ==============================================================================
73 
74  TYPE(t_region), POINTER :: pregion
75 
76 ! ==============================================================================
77 ! Local variables
78 ! ==============================================================================
79 
80  CHARACTER(CHRLEN) :: rcsidentstring
81  TYPE(t_global), POINTER :: global
82 
83 ! ******************************************************************************
84 ! Start
85 ! ******************************************************************************
86 
87  rcsidentstring = '$RCSfile: RFLU_ReadConvGridWrapper.F90,v $ $Revision: 1.3 $'
88 
89  global => pregion%global
90 
91  CALL registerfunction(global,'RFLU_ReadConvGridWrapper',&
92  'RFLU_ReadConvGridWrapper.F90')
93 
94 ! ******************************************************************************
95 ! Read grid file and convert if necessary
96 ! ******************************************************************************
97 
98  IF ( global%gridSource == grid_src_centaur_ascii ) THEN
99  CALL rflu_readgridcentaurascii(pregion)
100  CALL rflu_convcentaur2rocflu(pregion)
101  ELSE IF ( global%gridSource == grid_src_centaur_binary ) THEN
102  CALL rflu_readgridcentaurbinary(pregion)
103  CALL rflu_convcentaur2rocflu(pregion)
104  ELSE IF ( global%gridSource == grid_src_vgridns ) THEN
105  CALL rflu_readgridvgridns(pregion)
106  CALL rflu_convvgridns2rocflu(pregion)
107  ELSE IF ( global%gridSource == grid_src_mesh3d ) THEN
108  CALL rflu_readgridmesh3d(pregion)
109  CALL rflu_convmesh3d2rocflu(pregion)
110  ELSE IF ( global%gridSource == grid_src_tetmesh ) THEN
111  CALL rflu_readgridtetmesh(pregion)
112  CALL rflu_convtetmesh2rocflu(pregion)
113  ELSE IF ( global%gridSource == grid_src_cobalt ) THEN
114  CALL rflu_readgridcobalt(pregion)
115  CALL rflu_convcobalt2rocflu(pregion)
116  ELSE IF ( global%gridSource == grid_src_gambit_neutral ) THEN
117  CALL rflu_readgridgambitneutral(pregion)
118  CALL rflu_convgambit2rocflu(pregion)
119  ELSE
120  CALL errorstop(global,err_reached_default,__line__)
121  END IF ! global%gridSource
122 
123 ! ******************************************************************************
124 ! End
125 ! ******************************************************************************
126 
127  CALL deregisterfunction(global)
128 
129 END SUBROUTINE rflu_readconvgridwrapper
130 
131 
132 ! ******************************************************************************
133 !
134 ! RCS Revision history:
135 !
136 ! $Log: RFLU_ReadConvGridWrapper.F90,v $
137 ! Revision 1.3 2008/12/06 08:45:03 mtcampbe
138 ! Updated license.
139 !
140 ! Revision 1.2 2008/11/19 22:18:14 mtcampbe
141 ! Added Illinois Open Source License/Copyright
142 !
143 ! Revision 1.1 2005/04/15 15:09:18 haselbac
144 ! Initial revision
145 !
146 ! Revision 1.2 2004/11/03 15:06:30 haselbac
147 ! Added GAMBIT grid conversion option
148 !
149 ! Revision 1.1 2004/10/19 19:30:36 haselbac
150 ! Initial revision
151 !
152 ! ******************************************************************************
153 
154 
155 
156 
157 
158 
159 
subroutine, public rflu_readgridvgridns(pRegion)
subroutine, public rflu_readgridmesh3d(pRegion)
subroutine, public rflu_convtetmesh2rocflu(pRegion)
subroutine rflu_readconvgridwrapper(pRegion)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine, public rflu_convcentaur2rocflu(pRegion)
subroutine, public rflu_genx_getgrid(pRegion)
subroutine, public rflu_readgridgambitneutral(pRegion)
subroutine, public rflu_convcobalt2rocflu(pRegion)
subroutine, public rflu_readgridcobalt(pRegion)
subroutine, public rflu_readgridcentaurascii(pRegion)
subroutine, public rflu_convgambit2rocflu(pRegion)
LOGICAL function, public rflu_genx_decidereadfile(global)
subroutine, public rflu_convvgridns2rocflu(pRegion)
subroutine, public rflu_readgridtetmesh(pRegion)
subroutine, public rflu_readgridcentaurbinary(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
Definition: ModError.F90:483
subroutine, public rflu_convmesh3d2rocflu(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469