aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOHDF5/param.ccl
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2010-05-17 15:01:39 +0200
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 18:21:10 +0000
commitd3d28d5ce4b2896d09b92253a23fda46ee3bdd73 (patch)
tree03eacc08cf9cc0d4c283db58560017d60a62330e /Carpet/CarpetIOHDF5/param.ccl
parent4b184603a63657af2a63c9c0e1f72ea4a9d998c0 (diff)
CarpetIOHDF5: Index file support
Scanning the attributes of a large CarpetIOHDF5 output file, as is necessary in the visitCarpetHDF5 plugin, can be very time consuming. This commit adds support for writing an "index" HDF5 file at the same time as the data file, conditional on a parameter "CarpetIOHDF5::output_index". The index file is the same as the data file except it contains null datasets, and hence is very small. The attributes can be read from this index file instead of the data file, greatly increasing performance. The datasets will have size 1 in the index file, so an additional attribute (h5space) is added to the dataset to specify the correct dataset dimensions.
Diffstat (limited to 'Carpet/CarpetIOHDF5/param.ccl')
-rw-r--r--Carpet/CarpetIOHDF5/param.ccl4
1 files changed, 4 insertions, 0 deletions
diff --git a/Carpet/CarpetIOHDF5/param.ccl b/Carpet/CarpetIOHDF5/param.ccl
index c8d7afa30..2054d6918 100644
--- a/Carpet/CarpetIOHDF5/param.ccl
+++ b/Carpet/CarpetIOHDF5/param.ccl
@@ -424,3 +424,7 @@ INT compression_level "Compression level to use for writing HDF5 data" STEERABLE
BOOLEAN use_checksums "Use checksums for the HDF5 data" STEERABLE = ALWAYS
{
} "no"
+
+BOOLEAN output_index "Output an index file for each output file" STEERABLE = ALWAYS
+{
+} "no"