diff --git a/src/TurbDataReader.cpp b/src/TurbDataReader.cpp index f9687b579..bddf1a714 100644 --- a/src/TurbDataReader.cpp +++ b/src/TurbDataReader.cpp @@ -27,13 +27,14 @@ auto read_dataset(hid_t &file_id, char const *dataset_name) -> amrex::Table3D dims(ndims); H5Sget_simple_extent_dims(dspace, dims.data(), nullptr); - uint64_t data_size = 1; + size_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::unique_ptr temp_data(new double[data_size]); + std::vector temp_data(data_size); // read dataset herr_t status = H5Dread(dset_id, HDF5_R8, H5S_ALL, H5S_ALL, H5P_DEFAULT, temp_data);