From d1a13b28cc6d2551a223861a2a2e3c257c628958 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Wed, 8 Jul 2020 12:39:35 -0600 Subject: [PATCH] adding property list for dataset creation to tst_h_par_compress.c --- h5_test/tst_h_par_compress.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/h5_test/tst_h_par_compress.c b/h5_test/tst_h_par_compress.c index c4240353e..192c063f1 100644 --- a/h5_test/tst_h_par_compress.c +++ b/h5_test/tst_h_par_compress.c @@ -69,6 +69,7 @@ main(int argc, char **argv) printf("*** Creating file for parallel I/O read with compression, and rereading it..."); { hid_t fapl_id, fileid, whole_spaceid, dsid, slice_spaceid, whole_spaceid1, xferid; + hid_t plistid; hsize_t start[NDIMS], count[NDIMS]; hsize_t dims[1]; int data[SC1], data_in[SC1]; @@ -104,8 +105,10 @@ main(int argc, char **argv) if ((whole_spaceid = H5Screate_simple(NDIMS, dims, NULL)) < 0) ERR; /* Create dataset. */ + if ((plistid = H5Pcreate(H5P_DATASET_CREATE)) < 0) ERR; + if ((dsid = H5Dcreate2(fileid, VAR_NAME, H5T_NATIVE_INT, - whole_spaceid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) ERR; + whole_spaceid, H5P_DEFAULT, plistid, H5P_DEFAULT)) < 0) ERR; /* Use collective write operations. */ if ((xferid = H5Pcreate(H5P_DATASET_XFER)) < 0) ERR; @@ -157,6 +160,7 @@ main(int argc, char **argv) H5Sclose(whole_spaceid) < 0 || H5Sclose(slice_spaceid) < 0 || H5Pclose(fapl_id) < 0 || + H5Pclose(plistid) < 0 || H5Fclose(fileid) < 0) ERR;