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 edc4c9a commit b386a39
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 @@ -60,7 +60,7 @@ template <> class DatasetBase<specfem::IO::read> {
const int rank, const hsize_t *dims, const AtomType &type)
: dataset(std::make_unique<H5::DataSet>(file->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 b386a39

Please sign in to comment.