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

STORAGE: speedvars, couranttemps

schedule Time_Initialise at CCTK_BASEGRID before Time_Simple
{
  LANG: C
  OPTIONS: global
} "Initialise Time variables"

if (CCTK_Equals (timestep_method, "courant_static"))
{
  schedule Time_Simple at CCTK_BASEGRID as TemporalSpacings after SpatialSpacings
  {
    LANG: C
    OPTIONS: singlemap
  } "Set timestep based on Courant condition (courant_static)"
}
else if (CCTK_Equals (timestep_method, "courant_speed"))
{
  schedule Time_Courant at CCTK_BASEGRID as TemporalSpacings after SpatialSpacings
  {
    LANG: C
    OPTIONS: singlemap
  } "Set timestep based on Courant condition (courant_speed)"

   schedule Time_Courant at CCTK_POSTSTEP as TemporalSpacings after SpatialSpacings
  {
    LANG: C
    OPTIONS: singlemap
  } "Reset timestep each iteration"
}
else if (CCTK_Equals (timestep_method, "courant_time"))
{
  schedule Time_Simple at CCTK_BASEGRID as TemporalSpacings after SpatialSpacings
  {
    LANG: C
    OPTIONS: singlemap
  } "Set timestep based on Courant condition (courant_time)"

   schedule Time_Courant at CCTK_POSTSTEP as TemporalSpacings after SpatialSpacings
  {
    LANG: C
    OPTIONS: singlemap
  } "Reset timestep each iteration"
}
else if (CCTK_Equals (timestep_method, "given"))
{
  schedule Time_Given at CCTK_BASEGRID as TemporalSpacings after SpatialSpacings
  {
    LANG: C
    OPTIONS: singlemap
  } "Set fixed timestep"
}