Skip to content
Snippets Groups Projects
Commit f1cafceb authored by Elias Pipping's avatar Elias Pipping
Browse files

HDF5: Improve a comment

parent be518ae8
No related branches found
No related tags found
No related merge requests found
...@@ -38,14 +38,14 @@ public: ...@@ -38,14 +38,14 @@ public:
: readOnly_(access == Access::READONLY) { : readOnly_(access == Access::READONLY) {
struct stat buffer; struct stat buffer;
/* Use the latest HDF5 format. /* Use the latest HDF5 format (as opposed to: the latest format that supports
Upside : We can use new features like SWMR. the set of features we use: H5F_LIBVER_EARLIEST)
Downside: Tools that make use of old HDF5 versions cannot read Upside : Improvements in speed, file size
the output. This should not be a problem in practice Downside: Output cannot be read by old tools/libraries
since h5repack can be used to restore compatibility Remedy: h5repack and h5format_convert can restore compatibility. */
with older versions if needed. */ H5F_libver_t const minimumVersion = H5F_LIBVER_LATEST;
hid_t fapl = H5Pcreate(H5P_FILE_ACCESS); hid_t fapl = H5Pcreate(H5P_FILE_ACCESS);
H5Pset_libver_bounds(fapl, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST); H5Pset_libver_bounds(fapl, minimumVersion, H5F_LIBVER_LATEST);
bool const fileExists = stat(filename.c_str(), &buffer) == 0; bool const fileExists = stat(filename.c_str(), &buffer) == 0;
bool const createFile = !fileExists; bool const createFile = !fileExists;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment