aboutsummaryrefslogtreecommitdiff
path: root/schedule.ccl
diff options
context:
space:
mode:
authorallen <allen@5633253d-7678-4964-a54d-f87795f8ee59>1999-10-20 12:35:03 +0000
committerallen <allen@5633253d-7678-4964-a54d-f87795f8ee59>1999-10-20 12:35:03 +0000
commitd4bc19f0cb1a24b71a92cef8b03de4020b6e1f5c (patch)
tree59afac067d2d0ee21b19a863e37729080e37b431 /schedule.ccl
parentadee3e97c377b390fe318d0d8b888b96db8554b3 (diff)
Courant condition implemented for timestep, as described in documentation.
This hasn't been very well tested yet. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Time/trunk@11 5633253d-7678-4964-a54d-f87795f8ee59
Diffstat (limited to 'schedule.ccl')
-rw-r--r--schedule.ccl17
1 files changed, 14 insertions, 3 deletions
diff --git a/schedule.ccl b/schedule.ccl
index b8aca19..33a3133 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -1,10 +1,21 @@
# Schedule definitions for thorn Time
# $Header$
-schedule Time_Simple at CCTK_BASEGRID after CartGrid3D
+if (CCTK_Equals(courant_method,"standard"))
{
- LANG: C
-} "Set timestep based on speed one Courant condition"
+ schedule Time_Simple at CCTK_BASEGRID after CartGrid3D
+ {
+ LANG: C
+ } "Set timestep based on Courant condition"
+}
+if (CCTK_Equals(courant_method,"courant") || CCTK_Equals(courant_method,"courant_time"))
+{
+ schedule Time_Courant at CCTK_PRESTEP
+ {
+ LANG: C
+ } "Reset timestep each iteration"
+}
+