Skip to content

Commit

Permalink
Allow for the HDF5 file format to be compatible with features greater…
Browse files Browse the repository at this point in the history
… than HDF5 1.8, which

may require to have a superblock greater than v2.

Ref: Update HDF5 format compatibility Unidata#951
  • Loading branch information
brtnfld committed Jan 8, 2021
1 parent ca3d8c1 commit 255ca6a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions libhdf5/hdf5create.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,11 @@ nc4_create_file(const char *path, int cmode, size_t initialsz,

#ifdef HAVE_H5PSET_LIBVER_BOUNDS
#if H5_VERSION_GE(1,10,2)
if (H5Pset_libver_bounds(fapl_id, H5F_LIBVER_EARLIEST, H5F_LIBVER_V18) < 0)
if (H5Pset_libver_bounds(fapl_id, H5F_LIBVER_V18, H5F_LIBVER_LATEST) < 0)
#else
if (H5Pset_libver_bounds(fapl_id, H5F_LIBVER_EARLIEST,
H5F_LIBVER_LATEST) < 0)
if (H5Pset_libver_bounds(fapl_id, H5F_LIBVER_EARLIEST, H5F_LIBVER_LATEST) < 0)
#endif
BAIL(NC_EHDFERR);
BAIL(NC_EHDFERR);
#endif

/* Create the property list. */
Expand Down

0 comments on commit 255ca6a

Please sign in to comment.