Skip to content

Support both HDF5 API versions (1 and 2) in the hdf5 error handler #567

@AnidaKhizar

Description

@AnidaKhizar

During my simulation, I'm using PDI alongside another library (MED) that uses the version 1.6 of HDF5 API
PDI on the other hand uses (rightfully so) the version 2 of the API in the hdf5_wrapper, but as we can't use both versions, when the hdf5 error handlers is summoned, it produces the following error:
[PDI][NOINIT] *** Fatal error: System_error: wrong API function, H5Eset_auto1 has been called

So I patched the PDI Hdf5_error_handler class to dynamically switch between both versions when necessary. The patch is attached to the issue

hdf5_err_handler.patch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions