From eb14f5808b4068c12d7a6b644b2c1945b6d39ff9 Mon Sep 17 00:00:00 2001 From: Piyush Sharda Date: Sun, 4 Feb 2024 21:29:22 +0100 Subject: [PATCH] revert --- src/TurbDataReader.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/TurbDataReader.cpp b/src/TurbDataReader.cpp index 58123f7a5..cb5300b68 100644 --- a/src/TurbDataReader.cpp +++ b/src/TurbDataReader.cpp @@ -27,14 +27,13 @@ auto read_dataset(hid_t &file_id, char const *dataset_name) -> amrex::Table3D dims(ndims); H5Sget_simple_extent_dims(dspace, dims.data(), nullptr); - size_t data_size = 1; + uint64_t data_size = 1; for (int idim = 0; idim < ndims; ++idim) { data_size *= dims[idim]; } // allocate array for dataset storage - // std::unique_ptr temp_data(new double[data_size]); - std::vector temp_data(data_size); + auto *temp_data = new double[data_size]; // read dataset herr_t status = H5Dread(dset_id, HDF5_R8, H5S_ALL, H5S_ALL, H5P_DEFAULT, temp_data);