Uses existing interface function rather than calling HDF5 library directly

This commit is contained in:
John Tramm 2018-09-14 16:28:56 -05:00
parent 5dd0956650
commit 00154b1e6b

View file

@ -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 {