From 2c6ced8b7e84af5509e58d09865a88b52385321e Mon Sep 17 00:00:00 2001 From: David Radice Date: Wed, 19 Dec 2012 07:50:38 -0800 Subject: 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. --- Carpet/CarpetIOHDF5/src/OutputSlice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Carpet/CarpetIOHDF5') 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; -- cgit v1.2.3