1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
/*@@
@file GRHydro_PreLoop.F90
@date Mon Feb 25 11:43:36 2002
@author
@desc
Sets up various scalars used for efficiency reasons.
@enddesc
@@*/
#include "cctk.h"
#include "cctk_Parameters.h"
#include "cctk_Arguments.h"
#include "cctk_Functions.h"
/*@@
@routine GRHydro_Scalar_Setup
@date Mon Feb 25 11:25:27 2002
@author
@desc
Sets up the logical scalars from the parameters. These are
solely used for efficiency.
@enddesc
@calls
@calledby
@history
@endhistory
@@*/
subroutine GRHydro_Scalar_Setup(CCTK_ARGUMENTS)
USE GRHydro_Scalars
implicit none
DECLARE_CCTK_ARGUMENTS
DECLARE_CCTK_PARAMETERS
DECLARE_CCTK_FUNCTIONS
MINMOD = .false.
MC2 = .false.
SUPERBEE = .false.
HLLE = .false.
LLF = .false.
if (CCTK_EQUALS(tvd_limiter,"minmod")) then
MINMOD = .true.
else if (CCTK_EQUALS(tvd_limiter,"vanleerMC2")) then
MC2 = .true.
else if (CCTK_EQUALS(tvd_limiter,"Superbee")) then
SUPERBEE = .true.
else
call CCTK_WARN(0, "TVD Limiter not recognized!")
end if
PPM3=.false.
PPM4=.false.
if (CCTK_EQUALS(ppm_flatten,"stencil_3")) then
PPM3=.true.
else if (CCTK_EQUALS(ppm_flatten,"stencil_4")) then
PPM4=.true.
else
call CCTK_WARN(0, "PPM Flattening Procedure not recognized!")
end if
ANALYTICAL = .false.
if (CCTK_EQUALS(left_eigenvectors,"analytical")) then
ANALYTICAL = .true.
else if (CCTK_EQUALS(left_eigenvectors,"numerical")) then
ANALYTICAL = .false.
else
call CCTK_WARN(0, "Left Eigenvector Mode not recognized!")
end if
FAST = .false.
if (CCTK_EQUALS(numerical_viscosity,"fast")) then
FAST = .true.
else if (CCTK_EQUALS(numerical_viscosity,"normal")) then
FAST = .false.
else
call CCTK_WARN(0, "Numerical Viscosity Mode not recognized!")
end if
if (CCTK_EQUALS(riemann_solver,"HLLE")) then
HLLE = .true.
else if (CCTK_EQUALS(riemann_solver,"LLF")) then
LLF = .true.
end if
end subroutine GRHydro_Scalar_Setup
/*@@
@routine GRHydro_DivBInit
@date Apr 06, 2011
@author Bruno Mundim
@desc
Set divB=0 initially.
@enddesc
@calls
@calledby
@history
@endhistory
@@*/
subroutine GRHydro_DivBInit(CCTK_ARGUMENTS)
implicit none
DECLARE_CCTK_ARGUMENTS
divB=0.0
end subroutine GRHydro_DivBInit
|