Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RADI_FlimZeroDummyCells.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: set dummycells to zero.
26 !
27 ! Description: none.
28 !
29 ! Input: region = data of current region.
30 !
31 ! Output: regions%levels%radi%rhs = residual in dummy cells.
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: RADI_FlimZeroDummyCells.F90,v 1.4 2008/12/06 08:44:37 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2003 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE radi_flimzerodummycells( region ) ! PUBLIC
44 
45  USE moddatatypes
46  USE moddatastruct, ONLY : t_region
47  USE modglobal, ONLY : t_global
48  USE moderror
49  USE modparameters
50 #ifdef RFLO
52 #endif
53 #ifdef RFLU
55 #endif
56 
57  IMPLICIT NONE
58 
59 ! ... parameters
60  TYPE(t_region), TARGET :: region
61 
62 ! ... local variables
63 #ifdef RFLO
64  INTEGER :: ilev
65  REAL(RFREAL), POINTER :: rhs(:,:)
66 #endif
67  TYPE(t_global), POINTER :: global
68 #ifdef RFLU
69  TYPE(t_region), POINTER :: pregion
70 #endif
71 
72 !******************************************************************************
73 
74  global => region%global
75 
76  CALL registerfunction( global,'RADI_FlimZeroDummyCells',&
77  'RADI_FlimZeroDummyCells.F90' )
78 
79 ! zero out residuals in dummy cells -------------------------------------------
80 
81 #ifdef RFLO
82  ilev = region%currLevel
83  IF (ASSOCIATED( region%levels(ilev)%radi%rhs )) THEN
84  rhs => region%levels(ilev)%radi%rhs
85  CALL rflo_zerodummycells( region,rhs )
86  ENDIF
87 #endif
88 
89 #ifdef RFLU
90  pregion => region
91 
92  IF (ASSOCIATED(pregion%radi%rhs)) THEN
93  CALL rflu_zerovirtualcellvars(pregion,pregion%radi%rhs)
94  ENDIF
95 #endif
96 
97 ! finalize --------------------------------------------------------------------
98 
99  CALL deregisterfunction( global )
100 
101 END SUBROUTINE radi_flimzerodummycells
102 
103 !******************************************************************************
104 !
105 ! RCS Revision history:
106 !
107 ! $Log: RADI_FlimZeroDummyCells.F90,v $
108 ! Revision 1.4 2008/12/06 08:44:37 mtcampbe
109 ! Updated license.
110 !
111 ! Revision 1.3 2008/11/19 22:17:50 mtcampbe
112 ! Added Illinois Open Source License/Copyright
113 !
114 ! Revision 1.2 2005/05/16 20:46:00 haselbac
115 ! Changed RFLU_ZeroDummyCells to RFLU_ZeroVirtualCellVars
116 !
117 ! Revision 1.1 2004/09/30 17:49:10 wasistho
118 ! prepared for full FLD radiation model
119 !
120 !
121 !******************************************************************************
122 
123 
124 
125 
126 
127 
128 
NT rhs
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_zerovirtualcellvars(pRegion, var)
subroutine radi_flimzerodummycells(region)
subroutine rflo_zerodummycells(region, var)
subroutine deregisterfunction(global)
Definition: ModError.F90:469