aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOHDF5/schedule.ccl
diff options
context:
space:
mode:
authorThomas Radke <tradke@aei.mpg.de>2005-09-06 14:08:00 +0000
committerThomas Radke <tradke@aei.mpg.de>2005-09-06 14:08:00 +0000
commita2ca1433ce89441a93fd398835ab088502d310f0 (patch)
tree31520c29f64f9cb1c942ee7293214e9c938ea690 /Carpet/CarpetIOHDF5/schedule.ccl
parent6c4616e0d4e611cb74ea45ea83c694afc26450df (diff)
CarpetIOHDF5: fixed a problem with IOHDF5::use_reflevels_from_checkpoint = "yes" during recovery
When IOHDF5::use_reflevels_from_checkpoint is set, the parameter CarpetLib::refinement_levels is steered to take the number of levels found in the checkpoint. This steering used to happen during parameter recovery where it didn't have any effect if the parameter had been set in the parfile already. Now it's done in a separate routine scheduled at STARTUP. darcs-hash:20050906140808-776a0-bae608c103b161ac67690da2a8803bdff84cf2f4.gz
Diffstat (limited to 'Carpet/CarpetIOHDF5/schedule.ccl')
-rw-r--r--Carpet/CarpetIOHDF5/schedule.ccl9
1 files changed, 9 insertions, 0 deletions
diff --git a/Carpet/CarpetIOHDF5/schedule.ccl b/Carpet/CarpetIOHDF5/schedule.ccl
index 24963cf68..10bff3163 100644
--- a/Carpet/CarpetIOHDF5/schedule.ccl
+++ b/Carpet/CarpetIOHDF5/schedule.ccl
@@ -48,6 +48,15 @@ if (! CCTK_Equals (recover, "no") && *recover_file)
OPTIONS: meta
} "Parameter recovery routine"
+ if (use_reflevels_from_checkpoint)
+ {
+ schedule CarpetIOHDF5_SetNumRefinementLevels at STARTUP before CarpetIOHDF5_Startup
+ {
+ LANG:C
+ OPTIONS: meta
+ } "Overwrite 'CarpetRegird::refinement_levels' with the number of levels found in the checkpoint file"
+ }
+
schedule CarpetIOHDF5_CloseFiles at POST_RECOVER_VARIABLES
{
LANG: C