Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_MoveGridWrapper.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: Wrapper routine for moving grid.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! regions Region data
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 ! ******************************************************************************
37 !
38 ! $Id: RFLU_MoveGridWrapper.F90,v 1.5 2008/12/06 08:44:30 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2003-2004 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE rflu_movegridwrapper(regions)
45 
46  USE moddatatypes
47  USE modglobal, ONLY: t_global
48  USE moderror
49  USE moddatastruct, ONLY: t_region
50  USE modmpi
51  USE modparameters
52 
53 #ifdef GENX
55 #endif
56 
57  USE modinterfaces, ONLY: rflu_movegriddisp, &
59 
60  IMPLICIT NONE
61 
62 ! ******************************************************************************
63 ! Declarations and definitions
64 ! ******************************************************************************
65  INTEGER :: ireg
66  TYPE(t_region), POINTER :: pregion
67 
68 ! ==============================================================================
69 ! Arguments
70 ! ==============================================================================
71 
72  TYPE(t_region), DIMENSION(:), POINTER :: regions
73 
74 ! ==============================================================================
75 ! Locals
76 ! ==============================================================================
77 
78  CHARACTER(CHRLEN) :: rcsidentstring
79  TYPE(t_global), POINTER :: global
80 
81 ! ******************************************************************************
82 ! Start
83 ! ******************************************************************************
84 
85  rcsidentstring = '$RCSfile: RFLU_MoveGridWrapper.F90,v $ $Revision: 1.5 $'
86 
87  global => regions(1)%global
88 
89  CALL registerfunction(global,'RFLU_MoveGridWrapper',&
90  'RFLU_MoveGridWrapper.F90')
91 
92 ! ******************************************************************************
93 ! Call appropriate grid motion routine
94 ! ******************************************************************************
95 #ifdef GENX
96  DO ireg = 1,global%nRegionsLocal
97  pregion => regions(ireg)
98  IF(global%cnstrCaseRad > 0.0) THEN
99  CALL rflu_genx_constraindisp(pregion)
100  ENDIF
101  END DO ! iReg
102 #endif
103  IF ( regions(1)%mixtInput%moveGridType == movegrid_type_disp ) THEN
104  CALL rflu_movegriddisp(regions)
105  ELSE IF ( regions(1)%mixtInput%moveGridType == movegrid_type_xyz ) THEN
106  CALL rflu_movegridxyz(regions,movegrid_context_movesmooth)
107 #ifdef GENX
108  ELSE IF ( regions(1)%mixtInput%moveGridType == movegrid_type_genx ) THEN
109  CALL rflu_genx_movegrid(regions)
110 #endif
111  ELSE
112  CALL errorstop(global,err_reached_default,__line__)
113  END IF ! regions(1)%mixtInput%moveGridType
114 
115 ! ******************************************************************************
116 ! End
117 ! ******************************************************************************
118 
119  CALL deregisterfunction(global)
120 
121 END SUBROUTINE rflu_movegridwrapper
122 
123 ! ******************************************************************************
124 !
125 ! RCS Revision history:
126 !
127 ! $Log: RFLU_MoveGridWrapper.F90,v $
128 ! Revision 1.5 2008/12/06 08:44:30 mtcampbe
129 ! Updated license.
130 !
131 ! Revision 1.4 2008/11/19 22:17:42 mtcampbe
132 ! Added Illinois Open Source License/Copyright
133 !
134 ! Revision 1.3 2007/04/14 14:25:40 mtcampbe
135 ! Updated for rocket case constraints
136 !
137 ! Revision 1.2 2004/10/19 19:29:22 haselbac
138 ! Added GENX grid motion option, cosmetics
139 !
140 ! Revision 1.1 2003/03/31 16:05:39 haselbac
141 ! Initial revision
142 !
143 ! ******************************************************************************
144 
145 
146 
147 
148 
149 
150 
subroutine rflu_movegriddisp(regions)
subroutine rflu_movegridwrapper(regions)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine, public rflu_genx_constraindisp(pRegion)
subroutine rflu_movegridxyz(regions, context)
subroutine, public rflu_genx_movegrid(regions)
subroutine errorstop(global, errorCode, errorLine, addMessage)
Definition: ModError.F90:483
subroutine deregisterfunction(global)
Definition: ModError.F90:469