mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Uses existing interface function rather than calling HDF5 library directly
This commit is contained in:
parent
5dd0956650
commit
00154b1e6b
1 changed files with 1 additions and 2 deletions
|
|
@ -20,8 +20,7 @@ Reaction::Reaction(hid_t group, const std::vector<int>& temperatures)
|
|||
|
||||
// Checks if redudant attribute exists before loading
|
||||
// (for compatibiltiy with legacy .h5 libraries)
|
||||
htri_t exists = H5Aexists(group, "redundant");
|
||||
if( exists ) {
|
||||
if (attribute_exists(group, "redundant")) {
|
||||
read_attribute(group, "redundant", tmp);
|
||||
redundant_ = (tmp == 1);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue