aboutsummaryrefslogtreecommitdiff
path: root/CarpetExtra/SpaceTimeToy/schedule.ccl
blob: f8f88f9bab5780d0d1331754a3330fe65d7b52f0 (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
# Schedule definitions for thorn SpaceTimeToy
# $Header:$

STORAGE: spacetimeevolve[3]
STORAGE: icn_state



# Startup

schedule SpaceTimeToy_Startup at STARTUP
{
  LANG: Fortran
} "Register banner"

schedule SpaceTimeToy_InitSymBound at BASEGRID
{
  LANG: Fortran
  OPTIONS: global
} "Schedule symmetries"



# Iterative Crank-Nicholson integration

schedule SpaceTimeToy_EulerStep at EVOL \
	after HydroToy_EulerPredictor
{
  LANG: Fortran
  STORAGE: spacetimetemps hydrotemps
} "Initial Euler step"

schedule SpaceTimeToy_Boundaries at EVOL \
	after SpaceTimeToy_EulerStep
{
  LANG: Fortran
  SYNC: spacetimeevolve
} "Select boundary conditions after initial Euler step"

schedule GROUP ApplyBCs at EVOL \
	after SpaceTimeToy_Boundaries
{
} "Apply boundary conditions after initial Euler step"



schedule GROUP SpaceTimeToy_ICNLoop at EVOL \
	after SpaceTimeToy_EulerStep \
	after HydroToy_EulerPredictor \
	before HydroToy_EulerCorrector \
	while SpaceTimeToy::do_iterate
{
} "All ICN steps"

schedule SpaceTimeToy_ICNStep in SpaceTimeToy_ICNLoop
{
  LANG: Fortran
  STORAGE: spacetimetemps hydrotemps
} "One ICN step"

schedule SpaceTimeToy_Boundaries in SpaceTimeToy_ICNLoop \
	after SpaceTimeToy_ICNStep
{
  LANG: Fortran
  SYNC: spacetimeevolve
} "Select boundary conditions after ICN step"

schedule GROUP ApplyBCs in SpaceTimeToy_ICNLoop \
	after SpaceTimeToy_Boundaries
{
} "Apply boundary conditions after ICN step"



schedule SpaceTimeToy_Boundaries at POSTRESTRICT
{
  LANG: Fortran
  SYNC: spacetimeevolve
} "Select boundary conditions after restricting"

schedule GROUP ApplyBCs at POSTRESTRICT \
	after SpaceTimeToy_Boundaries
{
} "Apply boundary conditions after restricting"