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

schedule Time_Initialise at CCTK_BASEGRID before (Time_Simple, Time_Given)
{
  LANG: C
} "Initialise Time variables"

if (CCTK_Equals(timestep_method,"courant_static"))
{
  schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates
  {
     LANG: C
  } "Set timestep based on Courant condition"
}
else if (CCTK_Equals(timestep_method,"courant_speed") || CCTK_Equals(timestep_method,"courant_time"))
{
  schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates
  {
     LANG: C
  } "Set timestep based on Courant condition"

  schedule Time_Courant at CCTK_PRESTEP 
  {
    LANG: C
  } "Reset timestep each iteration"
}
else 
{
  schedule Time_Given at CCTK_BASEGRID
  {
     LANG: C
  } "Set fixed timestep"
}