Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_ModEntropyFixes.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: Collection definitions of entropy fixes.
26 !
27 ! Description: None
28 !
29 ! Notes: None.
30 !
31 !******************************************************************************
32 !
33 ! $Id: RFLU_ModEntropyFixes.F90,v 1.4 2008/12/06 08:44:21 mtcampbe Exp $
34 !
35 ! Copyright: (c) 2003 by the University of Illinois
36 !
37 !******************************************************************************
38 
40 
41  USE moddatatypes
42 
43  IMPLICIT NONE
44 
45  PRIVATE
46  PUBLIC :: entropyfixhartenhyman
47 
48 ! ******************************************************************************
49 ! Declarations and definitions
50 ! ******************************************************************************
51 
52 ! ==============================================================================
53 ! Local variables
54 ! ==============================================================================
55 
56  CHARACTER(CHRLEN), PARAMETER :: &
57  RCSIdentString = '$RCSfile: RFLU_ModEntropyFixes.F90,v $ $Revision: 1.4 $'
58 
59 ! ******************************************************************************
60 ! Module subroutines
61 ! ******************************************************************************
62 
63  CONTAINS
64 
65  FUNCTION entropyfixhartenhyman(l,d)
66 
67  REAL(RFREAL), INTENT(IN) :: l,d
68  REAL(RFREAL) :: entropyfixhartenhyman
69 
70  IF ( l > d ) THEN
72  ELSE
73  entropyfixhartenhyman = (l*l + d*d)/(2.0_rfreal*d)
74  END IF ! l
75 
76  END FUNCTION entropyfixhartenhyman
77 
78 ! ******************************************************************************
79 ! End
80 ! ******************************************************************************
81 
82 END MODULE rflu_modentropyfixes
83 
84 
85 ! ******************************************************************************
86 !
87 ! RCS Revision history:
88 !
89 ! $Log: RFLU_ModEntropyFixes.F90,v $
90 ! Revision 1.4 2008/12/06 08:44:21 mtcampbe
91 ! Updated license.
92 !
93 ! Revision 1.3 2008/11/19 22:17:32 mtcampbe
94 ! Added Illinois Open Source License/Copyright
95 !
96 ! Revision 1.2 2004/01/22 16:03:59 haselbac
97 ! Made contents of modules PRIVATE, only procs PUBLIC, to avoid errors on ALC and titan
98 !
99 ! Revision 1.1 2003/11/25 21:03:30 haselbac
100 ! Initial revision
101 !
102 ! ******************************************************************************
103 
104 
105 
106 
107 
108 
const NT & d
real(rfreal) function, public entropyfixhartenhyman(l, d)