aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOHDF5/schedule.ccl
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2006-04-13 20:21:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2006-04-13 20:21:00 +0000
commit5cd65be2b6d85cec04fbd4f8ab4792bb70cc1aae (patch)
tree529acfca7c5474778165fd9b7240f86ddc375d9a /Carpet/CarpetIOHDF5/schedule.ccl
parentff3c32bd8848efc0d1fe293b31d0078b61ec2d6e (diff)
CarpetIOHDF5: Add parameter "use_grid_structure_from_checkpoint"
Add a parameter "use_grid_structure_from_checkpoint" that reads the grid structure from the checkpoint file, and sets up the Carpet grid hierarchy accordingly. The Carpet grid hierarchy is written unconditionally to all checkpoint files. darcs-hash:20060413202124-dae7b-f97e6aac2267ebc5f5e3867cbf78ca52bbd33016.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 0ff1986a5..b586376ad 100644
--- a/Carpet/CarpetIOHDF5/schedule.ccl
+++ b/Carpet/CarpetIOHDF5/schedule.ccl
@@ -57,6 +57,15 @@ if (! CCTK_Equals (recover, "no") && *recover_file)
} "Overwrite 'CarpetRegird::refinement_levels' with the number of levels found in the checkpoint file"
}
+ if (use_grid_structure_from_checkpoint)
+ {
+ schedule CarpetIOHDF5_RecoverGridStructure at RECOVER_PARAMETERS
+ {
+ LANG:C
+ OPTIONS: meta
+ } "Grid structure recovery routine"
+ }
+
schedule CarpetIOHDF5_CloseFiles at POST_RECOVER_VARIABLES
{
LANG: C