Skip to content

Commit

Permalink
debug hdf5 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Feb 5, 2025
1 parent e790c4f commit 98c1ea8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tensor_outputs/XDMFTensorOutput.C
Original file line number Diff line number Diff line change
Expand Up @@ -281,20 +281,23 @@ addDataToHDF5(const std::string & filename,
dataspace_id = H5Screate_simple(dims.size(), dims.data(), nullptr);
if (dataspace_id < 0)
{
mooseInfo("HDF5 Error message (dataspace):");
H5Eprint(H5E_DEFAULT, stderr);
mooseError("Error creating dataspace");
}

plist_id = H5Pcreate(H5P_DATASET_CREATE);
if (plist_id < 0)
{
mooseInfo("HDF5 Error message (property list):");
H5Eprint(H5E_DEFAULT, stderr);
mooseError("Error creating property list");
}

status = H5Pset_chunk(plist_id, dims.size(), dims.data());
if (status < 0)
{
mooseInfo("HDF5 Error message (chunking):");
H5Eprint(H5E_DEFAULT, stderr);
mooseError("Error setting chunking");
}
Expand All @@ -305,6 +308,7 @@ addDataToHDF5(const std::string & filename,
file_id, dataset_name.c_str(), type, dataspace_id, H5P_DEFAULT, plist_id, H5P_DEFAULT);
if (dataset_id < 0)
{
mooseInfo("HDF5 Error message (dataset):");
H5Eprint(H5E_DEFAULT, stderr);
mooseError("Error creating dataset");
}
Expand Down

0 comments on commit 98c1ea8

Please sign in to comment.