diff options
author | Thomas Radke <tradke@aei.mpg.de> | 2005-04-12 16:14:00 +0000 |
---|---|---|
committer | Thomas Radke <tradke@aei.mpg.de> | 2005-04-12 16:14:00 +0000 |
commit | f6162ac90314e82232441a0177b6b597c4ace0c5 (patch) | |
tree | dfbaaf795c3b3405eb55487de2feb962bbb83af7 /Carpet/CarpetIOHDF5/param.ccl | |
parent | 579a35c98044e0f5a783b629162bd65c1f451bd0 (diff) |
CarpetIOHDF5: bugfix for checkpoint/recovery
CarpetIOHDF5 used to output unchunked data only, ie. all ghostzones and
boundary zones were cut off from the bboxes to be output.
This caused problems after recovery: uninitialized ghostzones led to wrong
results. The obvious solution, calling CCTK_SyncGroup() for all groups after
recovery, was also problematic because that (1) synchronised only the current
timelevel and (2) boundary prolongation was done in a scheduling order
different to the regular order used during checkpointing.
The solution implemented now by this patch is to write checkpoint files always
in chunked mode (which includes all ghostzones and boundary zones). This also
makes synchronisation of all groups after recovery unnecessary.
Regular HDF5 output files can also be written in chunked mode but the default
(still) is unchunked. A new boolean parameter IOHDF5::out_unchunked (with
default value "yes") was introduced to toggle this option.
Note that this parameter has the same meaning as IO::out_unchunked but an
opposite default value. This is the only reason why IOHDF5::out_unchunked
was introduced.
darcs-hash:20050412161430-776a0-d5efd21ecdbe41ad9a804014b816acad0cd71b2c.gz
Diffstat (limited to 'Carpet/CarpetIOHDF5/param.ccl')
-rw-r--r-- | Carpet/CarpetIOHDF5/param.ccl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Carpet/CarpetIOHDF5/param.ccl b/Carpet/CarpetIOHDF5/param.ccl index 9583c5b79..47c1111b2 100644 --- a/Carpet/CarpetIOHDF5/param.ccl +++ b/Carpet/CarpetIOHDF5/param.ccl @@ -160,3 +160,7 @@ BOOLEAN checkpoint_next "Checkpoint at next iteration ?" STEERABLE = ALWAYS BOOLEAN use_reflevels_from_checkpoint "Use 'CarpetRegrid::refinement_levels' from the checkpoint file rather than from the parameter file ?" STEERABLE = ALWAYS { } "no" + +BOOLEAN out_unchunked "Write recombined (unchunked) grid components to HDF5 output files ?" STEERABLE = RECOVER +{ +} "yes" |