aboutsummaryrefslogtreecommitdiff
path: root/ML_hydro/schedule.ccl
blob: 055b0ff04f575744f3e8e56375f2ff4de8bf2e18 (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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# File produced by Kranc


if (other_timelevels == 1)
{
  STORAGE: eneflux_group[1]
}

if (other_timelevels == 1)
{
  STORAGE: eps_group[1]
}

if (other_timelevels == 1)
{
  STORAGE: massflux_group[1]
}

if (other_timelevels == 1)
{
  STORAGE: momflux_group[1]
}

if (other_timelevels == 1)
{
  STORAGE: press_group[1]
}

if (other_timelevels == 1)
{
  STORAGE: rho_group[1]
}

if (other_timelevels == 1)
{
  STORAGE: vel_group[1]
}

if (other_timelevels == 1)
{
  STORAGE: vol_group[1]
}

if (timelevels == 1)
{
  STORAGE: ene_group[1]
}
if (timelevels == 2)
{
  STORAGE: ene_group[2]
}
if (timelevels == 3)
{
  STORAGE: ene_group[3]
}

if (timelevels == 1)
{
  STORAGE: mass_group[1]
}
if (timelevels == 2)
{
  STORAGE: mass_group[2]
}
if (timelevels == 3)
{
  STORAGE: mass_group[3]
}

if (timelevels == 1)
{
  STORAGE: mom_group[1]
}
if (timelevels == 2)
{
  STORAGE: mom_group[2]
}
if (timelevels == 3)
{
  STORAGE: mom_group[3]
}

if (rhs_timelevels == 1)
{
  STORAGE: ene_grouprhs[1]
}
if (rhs_timelevels == 2)
{
  STORAGE: ene_grouprhs[2]
}
if (rhs_timelevels == 3)
{
  STORAGE: ene_grouprhs[3]
}

if (rhs_timelevels == 1)
{
  STORAGE: mass_grouprhs[1]
}
if (rhs_timelevels == 2)
{
  STORAGE: mass_grouprhs[2]
}
if (rhs_timelevels == 3)
{
  STORAGE: mass_grouprhs[3]
}

if (rhs_timelevels == 1)
{
  STORAGE: mom_grouprhs[1]
}
if (rhs_timelevels == 2)
{
  STORAGE: mom_grouprhs[2]
}
if (rhs_timelevels == 3)
{
  STORAGE: mom_grouprhs[3]
}

schedule ML_hydro_Startup at STARTUP
{
  LANG: C
  OPTIONS: meta
} "create banner"

schedule ML_hydro_RegisterSymmetries in SymmetryRegister
{
  LANG: C
  OPTIONS: meta
} "register symmetries"


if (CCTK_EQUALS(initial_data, "vacuum"))
{
  schedule hydro_vacuum IN ADMBase_InitialData
  {
    LANG: C
    WRITES:   ML_hydro::eps_group
    WRITES:   ML_hydro::rho_group
    WRITES:   ML_hydro::vel_group
  } "hydro_vacuum"
}


if (CCTK_EQUALS(initial_data, "sound wave"))
{
  schedule hydro_soundWave IN ADMBase_InitialData
  {
    LANG: C
    READS:    grid::coordinates
    WRITES:   ML_hydro::eps_group
    WRITES:   ML_hydro::rho_group
    WRITES:   ML_hydro::vel_group
  } "hydro_soundWave"
}

schedule hydro_prim2con AT initial AFTER ADMBase_PostInitial
{
  LANG: C
  READS:    ML_hydro::eps_group
  READS:    ML_hydro::mass_group
  READS:    ML_hydro::rho_group
  READS:    ML_hydro::vel_group
  READS:    ML_hydro::vol_group
  WRITES:   ML_hydro::ene_group
  WRITES:   ML_hydro::mass_group
  WRITES:   ML_hydro::mom_group
  WRITES:   ML_hydro::vol_group
} "hydro_prim2con"

schedule hydro_con2prim IN hydro_con2primGroup
{
  LANG: C
  READS:    ML_hydro::ene_group
  READS:    ML_hydro::eps_group
  READS:    ML_hydro::mass_group
  READS:    ML_hydro::mom_group
  READS:    ML_hydro::rho_group
  READS:    ML_hydro::vel_group
  READS:    ML_hydro::vol_group
  WRITES:   ML_hydro::eps_group
  WRITES:   ML_hydro::press_group
  WRITES:   ML_hydro::rho_group
  WRITES:   ML_hydro::vel_group
} "hydro_con2prim"

schedule hydro_RHS IN hydro_evolCalcGroup AFTER hydro_fluxes
{
  LANG: C
  SYNC: ene_grouprhs
  SYNC: mass_grouprhs
  SYNC: mom_grouprhs
  READS:    ML_hydro::eneflux_group
  READS:    ML_hydro::massflux_group
  READS:    ML_hydro::momflux_group
  WRITES:   ML_hydro::ene_grouprhs
  WRITES:   ML_hydro::mass_grouprhs
  WRITES:   ML_hydro::mom_grouprhs
} "hydro_RHS"

schedule ML_hydro_SelectBoundConds in MoL_PostStep
{
  LANG: C
  OPTIONS: level
  SYNC: ene_group
  SYNC: mass_group
  SYNC: mom_group
} "select boundary conditions"

schedule ML_hydro_CheckBoundaries at BASEGRID
{
  LANG: C
  OPTIONS: meta
} "check boundaries treatment"

schedule ML_hydro_RegisterVars in MoL_Register
{
  LANG: C
  OPTIONS: meta
} "Register Variables for MoL"

schedule group ApplyBCs as ML_hydro_ApplyBCs in MoL_PostStep after ML_hydro_SelectBoundConds
{
  # no language specified
} "Apply boundary conditions controlled by thorn Boundary"