From d39f7b4c268f2b4acb92fba308a85185b58e1374 Mon Sep 17 00:00:00 2001 From: schnetter Date: Thu, 2 Mar 2006 01:19:58 +0000 Subject: 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 --- schedule.ccl | 9 +++++++-- 1 file 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" } -- cgit v1.2.3