hdf5: fix oinfo bug occuring for older hdf5 versions
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
2023d64a5f
commit
dc7137f400
1 changed files with 1 additions and 2 deletions
|
@ -180,10 +180,9 @@ namespace CNORXZ
|
||||||
index();
|
index();
|
||||||
H5O_info_t oinfo;
|
H5O_info_t oinfo;
|
||||||
#if H5_VERS_MINOR > 10
|
#if H5_VERS_MINOR > 10
|
||||||
//H5Oget_info(id, &oinfo, H5O_INFO_BASIC);
|
|
||||||
H5Oget_info_by_name(id, name, &oinfo, H5O_INFO_BASIC, H5P_DEFAULT);
|
H5Oget_info_by_name(id, name, &oinfo, H5O_INFO_BASIC, H5P_DEFAULT);
|
||||||
#else
|
#else
|
||||||
H5Oget_info(id, &oinfo);
|
H5Oget_info_by_name(id, name, &oinfo, H5P_DEFAULT);
|
||||||
#endif
|
#endif
|
||||||
switch (oinfo.type) {
|
switch (oinfo.type) {
|
||||||
case H5O_TYPE_GROUP: {
|
case H5O_TYPE_GROUP: {
|
||||||
|
|
Loading…
Reference in a new issue