From d4bc19f0cb1a24b71a92cef8b03de4020b6e1f5c Mon Sep 17 00:00:00 2001 From: allen Date: Wed, 20 Oct 1999 12:35:03 +0000 Subject: 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 --- schedule.ccl | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'schedule.ccl') 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" +} + -- cgit v1.2.3