Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_ZeroVirtualCellVars.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: Zero variables in virtual cells.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! pRegion Pointer to region
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 ! ******************************************************************************
37 !
38 ! $Id: RFLU_ZeroVirtualCellVars.F90,v 1.5 2008/12/06 08:44:13 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2005 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE rflu_zerovirtualcellvars(pRegion,var)
45 
46  USE moddatatypes
47  USE modparameters
48  USE moderror
49  USE modglobal, ONLY: t_global
50  USE moddatastruct, ONLY : t_region
51 
52  IMPLICIT NONE
53 
54 ! ******************************************************************************
55 ! Declarations and definitions
56 ! ******************************************************************************
57 
58 ! ==============================================================================
59 ! Arguments
60 ! ==============================================================================
61 
62  REAL(RFREAL), POINTER :: var(:,:)
63  TYPE(t_region), POINTER :: pregion
64 
65 ! ==============================================================================
66 ! Locals
67 ! ==============================================================================
68 
69  CHARACTER(CHRLEN) :: rcsidentstring
70  INTEGER :: icg
71  TYPE(t_global), POINTER :: global
72 
73 ! ******************************************************************************
74 ! Start
75 ! ******************************************************************************
76 
77  rcsidentstring = '$RCSfile: RFLU_ZeroVirtualCellVars.F90,v $ $Revision: 1.5 $'
78 
79  global => pregion%global
80 
81  CALL registerfunction(global,'RFLU_ZeroVirtualCellVars',&
82  'RFLU_ZeroVirtualCellVars.F90')
83 
84 ! ******************************************************************************
85 ! Compute cell gradients
86 ! ******************************************************************************
87 
88  DO icg = pregion%grid%nCells+1,pregion%grid%nCellsTot
89  var(:,icg) = 0.0_rfreal
90  END DO ! icg
91 
92 ! ******************************************************************************
93 ! End
94 ! ******************************************************************************
95 
96  CALL deregisterfunction(global)
97 
98 END SUBROUTINE rflu_zerovirtualcellvars
99 
100 ! ******************************************************************************
101 !
102 ! RCS Revision history:
103 !
104 ! $Log: RFLU_ZeroVirtualCellVars.F90,v $
105 ! Revision 1.5 2008/12/06 08:44:13 mtcampbe
106 ! Updated license.
107 !
108 ! Revision 1.4 2008/11/19 22:17:26 mtcampbe
109 ! Added Illinois Open Source License/Copyright
110 !
111 ! Revision 1.3 2006/04/07 15:19:16 haselbac
112 ! Removed tabs
113 !
114 ! Revision 1.2 2005/05/17 21:49:41 haselbac
115 ! Bug fix: Missing POINTER qualifier for pRegion
116 !
117 ! Revision 1.1 2005/05/16 20:36:28 haselbac
118 ! Initial revision
119 !
120 ! ******************************************************************************
121 
122 
123 
124 
125 
126 
127 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflu_zerovirtualcellvars(pRegion, var)
subroutine deregisterfunction(global)
Definition: ModError.F90:469