Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLO_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: globalGenx = pointer to global data
30 ! dAlpha = relative time step.
31 !
32 ! Output: nothing useful.
33 !
34 ! Notes: none.
35 !
36 !******************************************************************************
37 !
38 ! $Id: RFLO_UpdateInbuffGm.F90,v 1.3 2008/12/06 08:44:01 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2001 by the University of Illinois
41 !
42 !******************************************************************************
43 
44 SUBROUTINE rflo_updateinbuffgm( globalGenx,dAlpha )
45 
46  USE moddatatypes
47  USE modrocstar, ONLY : t_globalgenx
48  USE modbndpatch, ONLY : t_patch
49  USE moddatastruct, ONLY : t_region
50  USE modglobal, ONLY : t_global
51  USE moderror
52  USE modmpi
53  USE modparameters
54  IMPLICIT NONE
55 
56 ! ... parameters
57  DOUBLE PRECISION, INTENT(in) :: dalpha
58 
59  TYPE(t_globalgenx), POINTER :: globalgenx
60 
61 ! ... loop variables
62  INTEGER :: ireg, ipatch
63 
64 ! ... local variables
65  INTEGER :: ilev
66 
67  TYPE(t_global), POINTER :: global
68  TYPE(t_patch) , POINTER :: patch
69  TYPE (t_region), POINTER :: regions(:)
70 
71 !******************************************************************************
72 
73  global => globalgenx%global
74  regions => globalgenx%regions
75 
76  CALL registerfunction( global,'RFLO_UpdateInbuffGm',&
77  'RFLO_UpdateInbuffGm.F90' )
78 
79 ! fill geometry buffer
80 
81  DO ireg=1,global%nRegions
82  IF (regions(ireg)%procid==global%myProcid .AND. & ! region active and
83  regions(ireg)%active==active) THEN ! on my processor
84  ilev = regions(ireg)%currLevel
85  DO ipatch=1,regions(ireg)%nPatches
86  patch => regions(ireg)%levels(ilev)%patches(ipatch)
87  IF (patch%bcCoupled == bc_external) THEN ! data from outside
88  patch%duAlp(:,:,:) = 0._rfreal
89  ENDIF
90  ENDDO ! iPatch
91  ENDIF ! region on this processor and active
92  ENDDO ! iReg
93 
94 ! finalize
95 
96  CALL deregisterfunction( global )
97 
98 END SUBROUTINE rflo_updateinbuffgm
99 
100 !******************************************************************************
101 !
102 ! RCS Revision history:
103 !
104 ! $Log: RFLO_UpdateInbuffGm.F90,v $
105 ! Revision 1.3 2008/12/06 08:44:01 mtcampbe
106 ! Updated license.
107 !
108 ! Revision 1.2 2008/11/19 22:17:15 mtcampbe
109 ! Added Illinois Open Source License/Copyright
110 !
111 ! Revision 1.1 2004/12/01 21:23:55 haselbac
112 ! Initial revision after changing case
113 !
114 ! Revision 1.4 2003/05/15 02:57:00 jblazek
115 ! Inlined index function.
116 !
117 ! Revision 1.3 2003/01/28 21:35:33 jblazek
118 ! Corrected the loop over patches.
119 !
120 ! Revision 1.2 2002/10/30 22:07:51 jiao
121 ! Changed to initialize duAlp to 0 instead of to stop the code.
122 !
123 ! Revision 1.1 2002/09/20 22:22:34 jblazek
124 ! Finalized integration into GenX.
125 !
126 !******************************************************************************
127 
128 
129 
130 
131 
132 
133 
subroutine rflo_updateinbuffgm(globalGenx, dAlpha)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
Definition: patch.h:74
subroutine deregisterfunction(global)
Definition: ModError.F90:469