Skip to content

Commit

Permalink
HDF5 Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit-Kakodkar committed Nov 2, 2024
1 parent f428fd8 commit 8304b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/IO/HDF5/impl/datasetbase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ template <> class DatasetBase<specfem::IO::read> {
DatasetBase(std::unique_ptr<H5::Group> &group, const std::string &name,
const int rank, const hsize_t *dims, const AtomType &type)
: dataset(std::make_unique<H5::DataSet>(group->openDataSet(name))) {
if (dataset->getDataType() != type) {
if (!(dataset->getDataType() == type)) {
throw std::runtime_error("Type of dataset does not match view");
}

Expand Down

0 comments on commit 8304b50

Please sign in to comment.