blob: ecabb8fbaa0442727a34572216dc1aca4afc7ebc (
plain)
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
124
125
126
127
|
# File produced by Kranc
if (other_timelevels == 1)
{
STORAGE: F2rho_group[1]
}
if (other_timelevels == 1)
{
STORAGE: Frho_group[1]
}
if (other_timelevels == 1)
{
STORAGE: v_group[1]
}
if (timelevels == 1)
{
STORAGE: rho_group[1]
}
if (timelevels == 2)
{
STORAGE: rho_group[2]
}
if (timelevels == 3)
{
STORAGE: rho_group[3]
}
if (rhs_timelevels == 1)
{
STORAGE: rho_grouprhs[1]
}
if (rhs_timelevels == 2)
{
STORAGE: rho_grouprhs[2]
}
if (rhs_timelevels == 3)
{
STORAGE: rho_grouprhs[3]
}
schedule Advect_Startup at STARTUP
{
LANG: C
OPTIONS: meta
} "create banner"
schedule Advect_RegisterSymmetries in SymmetryRegister
{
LANG: C
OPTIONS: meta
} "register symmetries"
if (CCTK_EQUALS(initial_data, "sine"))
{
schedule advect_initial_sine at CCTK_INITIAL as advect_initial
{
LANG: C
READS: grid::x(Everywhere)
WRITES: Advect::rho(Everywhere)
WRITES: Advect::v1(Everywhere)
WRITES: Advect::v2(Everywhere)
WRITES: Advect::v3(Everywhere)
} "advect_initial_sine"
}
if (CCTK_EQUALS(initial_data, "shock"))
{
schedule advect_initial_shock at CCTK_INITIAL as advect_initial
{
LANG: C
READS: grid::x(Everywhere)
WRITES: Advect::rho(Everywhere)
WRITES: Advect::v1(Everywhere)
WRITES: Advect::v2(Everywhere)
WRITES: Advect::v3(Everywhere)
} "advect_initial_shock"
}
schedule advect_evol in MoL_CalcRHS
{
LANG: C
READS: Advect::Frho1(Everywhere)
READS: Advect::Frho2(Everywhere)
READS: Advect::Frho3(Everywhere)
WRITES: Advect::rhorhs(Interior)
} "advect_evol"
schedule advect_flux in MoL_PostStep after Advect_ApplyBCs
{
LANG: C
READS: Advect::rho(Everywhere)
READS: Advect::v1(Everywhere)
READS: Advect::v2(Everywhere)
READS: Advect::v3(Everywhere)
WRITES: Advect::Frho1(Everywhere)
WRITES: Advect::Frho2(Everywhere)
WRITES: Advect::Frho3(Everywhere)
} "advect_flux"
schedule Advect_SelectBoundConds in MoL_PostStep
{
LANG: C
OPTIONS: level
SYNC: rho_group
} "select boundary conditions"
schedule Advect_CheckBoundaries at BASEGRID
{
LANG: C
OPTIONS: meta
} "check boundaries treatment"
schedule Advect_RegisterVars in MoL_Register
{
LANG: C
OPTIONS: meta
} "Register Variables for MoL"
schedule group ApplyBCs as Advect_ApplyBCs in MoL_PostStep after Advect_SelectBoundConds
{
} "Apply boundary conditions controlled by thorn Boundary"
|