diff options
author | schnetter <schnetter@5633253d-7678-4964-a54d-f87795f8ee59> | 2006-03-02 01:19:58 +0000 |
---|---|---|
committer | schnetter <schnetter@5633253d-7678-4964-a54d-f87795f8ee59> | 2006-03-02 01:19:58 +0000 |
commit | d39f7b4c268f2b4acb92fba308a85185b58e1374 (patch) | |
tree | 9758254c99ca82a3b2e349e0bd979d5458f6e7ea | |
parent | 15e1316fcddec1888e65323751da4b249dd92f49 (diff) |
Thorn time determines the time step currently in level mode. In order
to determine the time step, it looks at the grid spacing, and when
this happens in level mode, there is an implicit assumption that the
grid spacing is the same on all maps (patches). This patch determines
the time step in singlemap mode, which loops over all maps and takes
all grid spacings into account.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Time/trunk@69 5633253d-7678-4964-a54d-f87795f8ee59
-rw-r--r-- | schedule.ccl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/schedule.ccl b/schedule.ccl index d70c45a..403fcf7 100644 --- a/schedule.ccl +++ b/schedule.ccl @@ -6,7 +6,7 @@ STORAGE: speedvars, couranttemps schedule Time_Initialise at CCTK_BASEGRID before (Time_Simple, Time_Given) { LANG: C - OPTIONS: level + OPTIONS: global } "Initialise Time variables" if (CCTK_Equals (timestep_method, "courant_static")) @@ -14,7 +14,7 @@ if (CCTK_Equals (timestep_method, "courant_static")) schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates { LANG: C - OPTIONS: level + OPTIONS: singlemap } "Set timestep based on Courant condition (courant_static)" } else if (CCTK_Equals (timestep_method, "courant_speed")) @@ -22,11 +22,13 @@ else if (CCTK_Equals (timestep_method, "courant_speed")) schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates { LANG: C + OPTIONS: singlemap } "Set timestep based on Courant condition (courant_speed)" schedule Time_Courant at CCTK_POSTSTEP { LANG: C + OPTIONS: singlemap } "Reset timestep each iteration" } else if (CCTK_Equals (timestep_method, "courant_time")) @@ -35,11 +37,13 @@ else if (CCTK_Equals (timestep_method, "courant_time")) schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates { LANG: C + OPTIONS: singlemap } "Set timestep based on Courant condition (courant_time)" schedule Time_Courant at CCTK_POSTSTEP { LANG: C + OPTIONS: singlemap } "Reset timestep each iteration" } else @@ -47,5 +51,6 @@ else schedule Time_Given at CCTK_BASEGRID { LANG: C + OPTIONS: global } "Set fixed timestep" } |