aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@5633253d-7678-4964-a54d-f87795f8ee59>2001-08-26 14:33:45 +0000
committertradke <tradke@5633253d-7678-4964-a54d-f87795f8ee59>2001-08-26 14:33:45 +0000
commit84ef2c5a0836488eaaccdebbe755841a1f76a15a (patch)
treeb879ae6bc2b1b89729550651731ed7b327e01478
parenta19c3602a40f8e8e5931da913c598623a1cae96f (diff)
Explicitely allocate storage for CCTK variables of thorn Time.
Closes CactusBase-768. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Time/trunk@40 5633253d-7678-4964-a54d-f87795f8ee59
-rw-r--r--schedule.ccl21
1 files changed, 11 insertions, 10 deletions
diff --git a/schedule.ccl b/schedule.ccl
index 419a3a2..65f8b4f 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -1,36 +1,37 @@
# Schedule definitions for thorn Time
# $Header$
+STORAGE: speedvars, couranttemps
+
schedule Time_Initialise at CCTK_BASEGRID before (Time_Simple, Time_Given)
{
LANG: C
} "Initialise Time variables"
-if (CCTK_Equals(timestep_method,"courant_static"))
+if (CCTK_Equals (timestep_method, "courant_static"))
{
schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates
{
- LANG: C
+ LANG: C
} "Set timestep based on Courant condition"
}
-else if (CCTK_Equals(timestep_method,"courant_speed") || CCTK_Equals(timestep_method,"courant_time"))
+else if (CCTK_Equals (timestep_method, "courant_speed") ||
+ CCTK_Equals (timestep_method, "courant_time"))
{
schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates
{
- LANG: C
+ LANG: C
} "Set timestep based on Courant condition"
- schedule Time_Courant at CCTK_PRESTEP
+ schedule Time_Courant at CCTK_PRESTEP
{
LANG: C
} "Reset timestep each iteration"
}
-else
+else
{
schedule Time_Given at CCTK_BASEGRID
{
- LANG: C
+ LANG: C
} "Set fixed timestep"
-}
-
-
+}