From 362b37b552d7f6fba19991efd72495db3492e11c Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Wed, 28 Apr 2021 15:42:02 -0600 Subject: [PATCH] Fix for use with szip and also 1.8.21 --- nc_test4/h5testszip.c | 4 ++-- nc_test4/tst_interops5.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nc_test4/h5testszip.c b/nc_test4/h5testszip.c index a2d9e9372..bfefd3857 100755 --- a/nc_test4/h5testszip.c +++ b/nc_test4/h5testszip.c @@ -81,7 +81,7 @@ writeszip() lcpl_id = H5Pcreate (H5P_LINK_CREATE); dapl_id = H5Pcreate (H5P_DATASET_ACCESS); - dataset32 = H5Dcreate1 (file, "datasetF32", H5T_NATIVE_FLOAT, data_space, lcpl_id, properties, dapl_id); + dataset32 = H5Dcreate2 (file, "datasetF32", H5T_NATIVE_FLOAT, data_space, lcpl_id, properties, dapl_id); /* * Write the array to the file. The datatype and dataspace @@ -113,7 +113,7 @@ readszip() file = H5Fopen (filename, H5F_ACC_RDONLY, H5P_DEFAULT); properties = H5Pcreate(H5P_DATASET_ACCESS); - dataset32 = H5Dopen1(file, "datasetF32", properties); + dataset32 = H5Dopen2(file, "datasetF32", properties); /* * Read the array. This is similar to writing data, diff --git a/nc_test4/tst_interops5.c b/nc_test4/tst_interops5.c index d72aa5e2d..06bf88c2c 100644 --- a/nc_test4/tst_interops5.c +++ b/nc_test4/tst_interops5.c @@ -211,7 +211,7 @@ main(int argc, char **argv) /* Open file and create group. */ if ((fileid = H5Fcreate(FILE_NAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) ERR; - if ((grpid = H5Gcreate(fileid, GRP_NAME, 0)) < 0) ERR; + if ((grpid = H5Gcreate1(fileid, GRP_NAME, 0)) < 0) ERR; /* Write an array of bools, with szip compression. */ if ((propid = H5Pcreate(H5P_DATASET_CREATE)) < 0) ERR;