Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_GetDeformationWrapper.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 to get deformation.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! region Region data
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 !******************************************************************************
37 !
38 ! $Id: RFLU_GetDeformationWrapper.F90,v 1.4 2008/12/06 08:44:30 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2003 by the University of Illinois
41 !
42 !******************************************************************************
43 
44 SUBROUTINE rflu_getdeformationwrapper(regions)
45 
46  USE moddatatypes
47  USE moddatastruct, ONLY: t_region
48  USE modglobal, ONLY: t_global
49  USE moderror
50  USE modmpi
51  USE modparameters
52 
53 #ifdef GENX
55 #else
57 #endif
58 
59  IMPLICIT NONE
60 
61 #ifdef GENX
62  include 'roccomf90.h'
63 #endif
64 
65 ! *****************************************************************************
66 ! Declarations and definitions
67 ! *****************************************************************************
68 
69 ! =============================================================================
70 ! Arguments
71 ! =============================================================================
72 
73  TYPE(t_region), DIMENSION(:), POINTER :: regions
74 
75 ! =============================================================================
76 ! Locals
77 ! =============================================================================
78 
79  CHARACTER(CHRLEN) :: rcsidentstring
80  INTEGER :: ireg
81  TYPE(t_global), POINTER :: global
82 
83 #ifdef GENX
84  DOUBLE PRECISION :: dalpha
85 #endif
86 
87 ! *****************************************************************************
88 ! Start
89 ! *****************************************************************************
90 
91  rcsidentstring = '$RCSfile: RFLU_GetDeformationWrapper.F90,v $ $Revision: 1.4 $'
92 
93  global => regions(1)%global
94 
95  CALL registerfunction(global,'RFLU_GetDeformationWrapper',&
96  'RFLU_GetDeformationWrapper.F90')
97 
98 ! *****************************************************************************
99 ! Get deformation
100 ! *****************************************************************************
101 
102 #ifdef GENX
103  dalpha = global%dtMin/global%dTimeSystem
104  CALL com_call_function(global%genxHandleGm,1,dalpha)
105 
106  DO ireg = 1,global%nRegionsLocal
107  CALL rflu_getdeformation(regions(ireg))
108  END DO ! iReg
109 #else
110  DO ireg = 1,global%nRegionsLocal
111  CALL rflu_user_getdeformation(regions(ireg))
112  END DO ! iReg
113 #endif
114 
115 ! *****************************************************************************
116 ! End
117 ! *****************************************************************************
118 
119  CALL deregisterfunction(global)
120 
121 END SUBROUTINE rflu_getdeformationwrapper
122 
123 !******************************************************************************
124 !
125 ! RCS Revision history:
126 !
127 ! $Log: RFLU_GetDeformationWrapper.F90,v $
128 ! Revision 1.4 2008/12/06 08:44:30 mtcampbe
129 ! Updated license.
130 !
131 ! Revision 1.3 2008/11/19 22:17:42 mtcampbe
132 ! Added Illinois Open Source License/Copyright
133 !
134 ! Revision 1.2 2003/05/09 17:01:04 jiao
135 ! Renamed the COM_call_function_handlers to COM_call_function.
136 !
137 ! Revision 1.1 2003/03/15 19:06:12 haselbac
138 ! Initial revision
139 !
140 !******************************************************************************
141 
142 
143 
144 
145 
146 
147 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_user_getdeformation(region)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine rflu_getdeformationwrapper(regions)
subroutine rflu_getdeformation(region)