Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RADI_FlimNumericalDissipation.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: compute numerical dissipation for FLD transport equation.
26 !
27 ! Description: none.
28 !
29 ! Input: region = data of current region.
30 !
31 ! Output: region%levels%radi%diss = radi dissipation.
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: RADI_FlimNumericalDissipation.F90,v 1.3 2008/12/06 08:44:37 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2003 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE radi_flimnumericaldissipation( region ) ! PUBLIC
44 
45  USE moddatastruct, ONLY : t_region
46  USE moderror
48 #ifdef RFLO
50 #endif
51  IMPLICIT NONE
52 
53 ! ... parameters
54  TYPE(t_region) :: region
55 
56 ! ... local variables
57  INTEGER :: discrtype, discrorder
58 
59 !******************************************************************************
60 
61  CALL registerfunction( region%global,'RADI_FlimNumericalDissipation', &
62  'RADI_FlimNumericalDissipation.F90' )
63 
64  IF (region%radiInput%radiModel /= radi_model_fldtran) goto 999
65 
66 ! get parameters --------------------------------------------------------------
67 
68  discrtype = region%radiInput%spaceDiscr
69  discrorder = region%radiInput%spaceOrder
70 
71 ! dissipation schemes ---------------------------------------------------------
72 
73 #ifdef RFLO
74  IF ( discrtype ==fld_discr_cen .AND. &
75  (discrorder==fld_discr_ord1 .OR. discrorder==fld_discr_ord2)) THEN
76  CALL radi_floflimcentraldissipation( region )
77  ENDIF
78 #endif
79 
80 ! finalize --------------------------------------------------------------------
81 
82 999 CONTINUE
83 
84  CALL deregisterfunction( region%global )
85 
86 END SUBROUTINE radi_flimnumericaldissipation
87 
88 !******************************************************************************
89 !
90 ! RCS Revision history:
91 !
92 ! $Log: RADI_FlimNumericalDissipation.F90,v $
93 ! Revision 1.3 2008/12/06 08:44:37 mtcampbe
94 ! Updated license.
95 !
96 ! Revision 1.2 2008/11/19 22:17:50 mtcampbe
97 ! Added Illinois Open Source License/Copyright
98 !
99 ! Revision 1.1 2004/09/30 17:49:10 wasistho
100 ! prepared for full FLD radiation model
101 !
102 !
103 !
104 !******************************************************************************
105 
106 
107 
108 
109 
110 
111 
subroutine radi_flimnumericaldissipation(region)
subroutine radi_floflimcentraldissipation(region)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine deregisterfunction(global)
Definition: ModError.F90:469