Skip to content

Commit

Permalink
Fix Issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfer committed Feb 12, 2024
1 parent c1ba692 commit 113632b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/HDF5.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,18 @@ namespace madnex {
return false;
}
H5O_info_t infobuf;
#ifdef H5Oget_info_by_name_vers
#if H5Oget_info_by_name_vers >=3
auto status = H5Oget_info_by_name(g.getId(), p.c_str(), &infobuf,
H5O_INFO_ALL, H5P_DEFAULT);
#else
auto status =
H5Oget_info_by_name(g.getId(), p.c_str(), &infobuf, H5P_DEFAULT);
#endif
#else
auto status =
H5Oget_info_by_name(g.getId(), p.c_str(), &infobuf, H5P_DEFAULT);
#endif
return (status >= 0) && (infobuf.type == H5O_TYPE_GROUP);
}

Expand Down

0 comments on commit 113632b

Please sign in to comment.