aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@5633253d-7678-4964-a54d-f87795f8ee59>2013-01-15 19:39:53 +0000
committereschnett <eschnett@5633253d-7678-4964-a54d-f87795f8ee59>2013-01-15 19:39:53 +0000
commit734eac9b56b029da428c716c97f6462eb907b9b5 (patch)
tree89750b0ca91bf81da36974898619db615a7b1c1f
parent1aa61be615b6bc1ac2069e79760ef9fcaf56b0a4 (diff)
Introduce alias TemporalSpacings
Introduce alias TemporalSpacings for the routines setting the time step size. This is needed for runs with OpenCL. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Time/trunk@89 5633253d-7678-4964-a54d-f87795f8ee59
-rw-r--r--schedule.ccl21
1 files changed, 10 insertions, 11 deletions
diff --git a/schedule.ccl b/schedule.ccl
index 8b6f7ce..4fe2d13 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -1,9 +1,8 @@
# Schedule definitions for thorn Time
-# $Header$
STORAGE: speedvars, couranttemps
-schedule Time_Initialise at CCTK_BASEGRID before (Time_Simple, Time_Given)
+schedule Time_Initialise at CCTK_BASEGRID before Time_Simple
{
LANG: C
OPTIONS: global
@@ -11,7 +10,7 @@ schedule Time_Initialise at CCTK_BASEGRID before (Time_Simple, Time_Given)
if (CCTK_Equals (timestep_method, "courant_static"))
{
- schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates
+ schedule Time_Simple at CCTK_BASEGRID as TemporalSpacings after SpatialSpacings
{
LANG: C
OPTIONS: singlemap
@@ -19,37 +18,37 @@ if (CCTK_Equals (timestep_method, "courant_static"))
}
else if (CCTK_Equals (timestep_method, "courant_speed"))
{
- schedule Time_Courant at CCTK_BASEGRID after SpatialCoordinates
+ schedule Time_Courant at CCTK_BASEGRID as TemporalSpacings after SpatialSpacings
{
LANG: C
OPTIONS: singlemap
} "Set timestep based on Courant condition (courant_speed)"
- schedule Time_Courant at CCTK_POSTSTEP
+ schedule Time_Courant at CCTK_POSTSTEP as TemporalSpacings after SpatialSpacings
{
LANG: C
OPTIONS: singlemap
} "Reset timestep each iteration"
}
-else if (CCTK_Equals (timestep_method, "courant_time"))
+else if (CCTK_Equals (timestep_method, "courant_time"))
{
- schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates
+ schedule Time_Simple at CCTK_BASEGRID as TemporalSpacings after SpatialSpacings
{
LANG: C
OPTIONS: singlemap
} "Set timestep based on Courant condition (courant_time)"
- schedule Time_Courant at CCTK_POSTSTEP
+ schedule Time_Courant at CCTK_POSTSTEP as TemporalSpacings after SpatialSpacings
{
LANG: C
OPTIONS: singlemap
} "Reset timestep each iteration"
}
-else
+else if (CCTK_Equals (timestep_method, "given"))
{
- schedule Time_Given at CCTK_BASEGRID
+ schedule Time_Given at CCTK_BASEGRID as TemporalSpacings after SpatialSpacings
{
LANG: C
- OPTIONS: global
+ OPTIONS: singlemap
} "Set fixed timestep"
}