From 7119773429829dc6791fad5aa5e6c57febc63527 Mon Sep 17 00:00:00 2001 From: Steven Hahn Date: Thu, 1 Dec 2022 09:38:54 -0500 Subject: [PATCH] Update deprecated functions Signed-off-by: Steven Hahn --- src/io/hdf/hdf_archive.h | 2 +- src/io/hdf/hdf_wrapper_functions.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io/hdf/hdf_archive.h b/src/io/hdf/hdf_archive.h index 675851a1b45..5d97378c573 100644 --- a/src/io/hdf/hdf_archive.h +++ b/src/io/hdf/hdf_archive.h @@ -317,7 +317,7 @@ class hdf_archive if (Mode[NOIO]) return; hid_t p = group_id.empty() ? file_id : group_id.top(); - herr_t status = H5Gunlink(p, aname.c_str()); + herr_t status = H5Ldelete(p, aname.c_str(), H5P_DEFAULT); } }; diff --git a/src/io/hdf/hdf_wrapper_functions.h b/src/io/hdf/hdf_wrapper_functions.h index 5421d3ef9e1..85eb9c50372 100644 --- a/src/io/hdf/hdf_wrapper_functions.h +++ b/src/io/hdf/hdf_wrapper_functions.h @@ -438,7 +438,7 @@ inline bool h5d_append(hid_t grp, start[0] = current; end[0] = start[0] + dims[0]; //extend the dataset (file) - herr_t he = H5Dextend(dataset, end.data()); + herr_t he = H5Dset_extent(dataset, end.data()); //get the corresponding dataspace (filespace) dataspace = H5Dget_space(dataset); //set the extent