aboutsummaryrefslogtreecommitdiff
path: root/schedule.ccl
blob: b6f4ec601b5efea955c290914b032adb3ea51fe8 (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
# Schedule definitions for thorn HydroBase

#######################################################################
### We leave the storage on all the time for the variables required ###
### by MoL. There is probably a better way of doing this.           ###
#######################################################################

if (timelevels == 3)
{
  STORAGE:rho[3]
  STORAGE:press[3]
  STORAGE:eps[3]
  STORAGE:vel[3]
}
else if (timelevels == 2)
{
  STORAGE:rho[2]
  STORAGE:press[2]
  STORAGE:eps[2]
  STORAGE:vel[2]
}
else if (timelevels == 1)
{
  STORAGE:rho[1]
  STORAGE:press[1]
  STORAGE:eps[1]
  STORAGE:vel[1]
}

schedule group HydroBase_Initial AT Initial after ADMBase_InitialData after ADMBase_InitialGauge after IOUtil_RecoverIDFromDatafiles before ADMBase_PostInitial before SetTmunu
{
} "HydroBase initial data group"

###############################
### Register startup banner ###
###############################

schedule HydroBase_StartUp AT WRAGH
{
  LANG: C
} "Startup banner"

schedule group HydroBase_RHS IN MoL_CalcRHS
{
} "Groups for scheduling tasks for calculating RHS of hydro variables"

schedule group HydroBase_PostStep IN MoL_PostStep BEFORE SetTmunu
{
} "Post step tasks for hydro thorns"

schedule group HydroBase_PostStep AT POSTRESTRICTINITIAL
{
} "Post step tasks for hydro thorns"

# Hydro thorns should not schedule something in this group
# (schedule them in HydroBase_Boundaries), but they can refer to it
# in order to schedule own routines before or after the boundary
# treatment
schedule group HydroBase_Do_Boundaries IN HydroBase_PostStep BEFORE HydroBase_Con2Prim
{
} "HydroBase Boundary conditions group"

schedule group HydroBase_Boundaries IN HydroBase_Do_Boundaries
{
} "Group to schedule the boundary condition functions"

schedule group ApplyBCs AS HydroBase_ApplyBCs IN HydroBase_Do_Boundaries AFTER HydroBase_Boundaries
{
} "Apply the boundary conditions of HydroBase"

schedule group HydroBase_Con2Prim IN HydroBase_PostStep
{
} "Convert from conservative to primitive variables"

# I am not quite sure why this has to be scheduled in CCTK_PostPostInitial (roland)
schedule group HydroBase_Con2Prim AT CCTK_PostPostInitial AS Con2Prim BEFORE ADMConstraintsGroup
{
} "Convert from conservative to primitive variables (might be redundant)"

schedule group HydroBase_Prim2ConInitial AT Initial AFTER HydroBase_Initial
{
} "Recover the conservative variables from the primitive variables"