Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_UpdateInbuffGm.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: Dummy routine to fill the geometry buffer.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! globalGenx Pointer to global data
31 ! dAlpha Relative time step
32 !
33 ! Output: None.
34 !
35 ! Notes: None.
36 !
37 !******************************************************************************
38 !
39 ! $Id: RFLU_UpdateInbuffGm.F90,v 1.6 2008/12/06 08:44:01 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2002 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE rflu_updateinbuffgm(globalGenx,dAlpha)
46 
47  USE moddatatypes
48  USE modrocstar, ONLY: t_globalgenx
49  USE moddatastruct, ONLY: t_region
50  USE modbndpatch, ONLY: t_patch
51  USE modglobal, ONLY: t_global
52  USE moderror
53  USE modmpi
54  USE modparameters
55 
56  IMPLICIT NONE
57 
58 ! *****************************************************************************
59 ! Definitions and declarations
60 ! *****************************************************************************
61 
62 ! =============================================================================
63 ! Arguments
64 ! =============================================================================
65 
66  DOUBLE PRECISION, INTENT(IN) :: dalpha
67  TYPE(t_globalgenx), POINTER :: globalgenx
68 
69 ! =============================================================================
70 ! Locals
71 ! =============================================================================
72 
73  CHARACTER(CHRLEN) :: rcsidentstring
74  INTEGER :: ipatch,ireg,iv
75  TYPE(t_global), POINTER :: global
76  TYPE(t_patch), POINTER :: ppatch
77  TYPE(t_region), POINTER :: pregion
78 
79 ! *****************************************************************************
80 ! Start
81 ! *****************************************************************************
82 
83  rcsidentstring = '$RCSfile: RFLU_UpdateInbuffGm.F90,v $ $Revision: 1.6 $'
84 
85  global => globalgenx%global
86 
87  CALL registerfunction(global,'RFLU_UpdateInbuffGm',&
88  'RFLU_UpdateInbuffGm.F90')
89 
90 ! *****************************************************************************
91 ! Fill displacement buffer
92 ! *****************************************************************************
93 
94  DO ireg = 1,global%nRegionsLocal
95  pregion => globalgenx%levels(1)%regions(ireg)
96 
97  DO ipatch = 1,pregion%grid%nPatches
98  ppatch => pregion%patches(ipatch)
99 
100  DO iv = 1,ppatch%nBVert
101  ppatch%duAlp(xcoord,iv) = 0.0_rfreal
102  ppatch%duAlp(ycoord,iv) = 0.0_rfreal
103  ppatch%duAlp(zcoord,iv) = 0.0_rfreal
104  END DO ! iv
105 
106  DO iv = ppatch%nBVert+1,ppatch%nBVertTot
107  ppatch%duAlp(xcoord,iv) = REAL(crazy_value_int,kind=rfreal)
108  ppatch%duAlp(ycoord,iv) = REAL(crazy_value_int,kind=rfreal)
109  ppatch%duAlp(zcoord,iv) = REAL(crazy_value_int,kind=rfreal)
110  END DO ! iv
111  END DO ! iPatch
112  END DO ! iReg
113 
114 ! *****************************************************************************
115 ! End
116 ! *****************************************************************************
117 
118  CALL deregisterfunction(global)
119 
120 END SUBROUTINE rflu_updateinbuffgm
121 
122 !******************************************************************************
123 !
124 ! RCS Revision history:
125 !
126 ! $Log: RFLU_UpdateInbuffGm.F90,v $
127 ! Revision 1.6 2008/12/06 08:44:01 mtcampbe
128 ! Updated license.
129 !
130 ! Revision 1.5 2008/11/19 22:17:15 mtcampbe
131 ! Added Illinois Open Source License/Copyright
132 !
133 ! Revision 1.4 2003/05/13 23:45:02 haselbac
134 ! Added init of dummy vertices
135 !
136 ! Revision 1.3 2003/04/12 21:35:01 haselbac
137 ! Cosmetics only
138 !
139 ! Revision 1.2 2002/12/03 22:58:27 haselbac
140 ! Added proper code
141 !
142 ! Revision 1.1 2002/10/05 18:28:18 haselbac
143 ! Initial revision
144 !
145 !******************************************************************************
146 
147 
148 
149 
150 
151 
152 
subroutine rflu_updateinbuffgm(globalGenx, dAlpha)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine deregisterfunction(global)
Definition: ModError.F90:469