aboutsummaryrefslogtreecommitdiff
path: root/schedule.ccl
diff options
context:
space:
mode:
Diffstat (limited to 'schedule.ccl')
-rw-r--r--schedule.ccl25
1 files changed, 16 insertions, 9 deletions
diff --git a/schedule.ccl b/schedule.ccl
index 927b5a1..12133ce 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -13,21 +13,28 @@ if (CCTK_Equals (timestep_method, "courant_static"))
schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates
{
LANG: C
- } "Set timestep based on Courant condition"
+ } "Set timestep based on Courant condition (courant_static)"
}
-else if (CCTK_Equals (timestep_method, "courant_speed") ||
- CCTK_Equals (timestep_method, "courant_time"))
+else if (CCTK_Equals (timestep_method, "courant_speed"))
{
schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates
{
LANG: C
- } "Set timestep based on Courant condition"
+ } "Set timestep based on Courant condition (courant_speed)"
+
+ schedule Time_Courant at CCTK_POSTSTEP
+ {
+ LANG: C
+ } "Reset timestep each iteration"
+}
+else if (CCTK_Equals (timestep_method, "courant_time"))
+
+{
+ schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates
+ {
+ LANG: C
+ } "Set timestep based on Courant condition (courant_time)"
- schedule Time_Courant at CCTK_POSTINITIAL
- {
- LANG: C
- } "Reset timestep each iteration"
-
schedule Time_Courant at CCTK_POSTSTEP
{
LANG: C