aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOHDF5
diff options
context:
space:
mode:
authorDavid Radice <david.radice@aei.mpg.de>2012-12-19 07:50:38 -0800
committerRoland Haas <roland.haas@physics.gatech.edu>2012-12-19 07:50:38 -0800
commit2c6ced8b7e84af5509e58d09865a88b52385321e (patch)
tree173a845de020d0ddbee4389a9fb0666bb0c1e927 /Carpet/CarpetIOHDF5
parentec4f13f3b3c9b3f21a05151f2df13b9fb4fb782b (diff)
CarpetIOHDF5: Sliced HDF5 output index file not stored correctly
Index HDF5 datafiles weree not handled correctly in the case of sliced data. The files are created and initialized correctly at the first iteration, but every subsequent access fails with an HDF5 error. Patch by David Radice.
Diffstat (limited to 'Carpet/CarpetIOHDF5')
-rw-r--r--Carpet/CarpetIOHDF5/src/OutputSlice.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetIOHDF5/src/OutputSlice.cc b/Carpet/CarpetIOHDF5/src/OutputSlice.cc
index 57f3e046f..0a5fcee89 100644
--- a/Carpet/CarpetIOHDF5/src/OutputSlice.cc
+++ b/Carpet/CarpetIOHDF5/src/OutputSlice.cc
@@ -841,9 +841,9 @@ namespace CarpetIOHDF5 {
HDF5_ERROR (fapl_id = H5Pcreate (H5P_FILE_ACCESS));
HDF5_ERROR (H5Pset_fclose_degree (fapl_id, H5F_CLOSE_STRONG));
HDF5_ERROR (file = H5Fopen(filename, H5F_ACC_RDWR, fapl_id));
- HDF5_ERROR (H5Pclose (fapl_id));
if (output_index)
HDF5_ERROR (index_file = H5Fopen (index_filename.c_str(), H5F_ACC_RDWR,fapl_id));
+ HDF5_ERROR (H5Pclose (fapl_id));
}
io_files += 1;