diff options
author | yye00 <yye00@5633253d-7678-4964-a54d-f87795f8ee59> | 2004-10-05 20:01:05 +0000 |
---|---|---|
committer | yye00 <yye00@5633253d-7678-4964-a54d-f87795f8ee59> | 2004-10-05 20:01:05 +0000 |
commit | fa567ab69ac4eaa70d703b573d5486267e649039 (patch) | |
tree | 2b43f9694582304ddd1faa5b5706506f5bb4c18a /schedule.ccl | |
parent | f81ea75b2b50d8f644106ef1110101a7b71ae3af (diff) |
Call CFL setting routines only once per refinement level.
Calculate the grid spacing correctly even for dim>3.
Correctly cast the values before passing them to printf.
Print the newly calculated time step size, not the old time step size.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Time/trunk@62 5633253d-7678-4964-a54d-f87795f8ee59
Diffstat (limited to 'schedule.ccl')
-rw-r--r-- | schedule.ccl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/schedule.ccl b/schedule.ccl index 12133ce..d70c45a 100644 --- a/schedule.ccl +++ b/schedule.ccl @@ -6,6 +6,7 @@ STORAGE: speedvars, couranttemps schedule Time_Initialise at CCTK_BASEGRID before (Time_Simple, Time_Given) { LANG: C + OPTIONS: level } "Initialise Time variables" if (CCTK_Equals (timestep_method, "courant_static")) @@ -13,6 +14,7 @@ if (CCTK_Equals (timestep_method, "courant_static")) schedule Time_Simple at CCTK_BASEGRID after SpatialCoordinates { LANG: C + OPTIONS: level } "Set timestep based on Courant condition (courant_static)" } else if (CCTK_Equals (timestep_method, "courant_speed")) |