This PR adds TREXIO_AUTO back end, which can be used in READONLY mode ('r') to automatically determine the back end needed to open an existing TREXIO file. It does so by inspecting the return codes of trexio_text_inquire and trexio_hdf5_inquire functions. It should be updated when a new back end is implemented.
TREXIO_AUTO only works together with r mode in trexio_open, i.e. the correct call pattern is as follows:
This PR adds
TREXIO_AUTO
back end, which can be used in READONLY mode ('r'
) to automatically determine the back end needed to open an existing TREXIO file. It does so by inspecting the return codes oftrexio_text_inquire
andtrexio_hdf5_inquire
functions. It should be updated when a new back end is implemented.TREXIO_AUTO
only works together withr
mode intrexio_open
, i.e. the correct call pattern is as follows:trexio_open(file_name, 'r', TREXIO_AUTO, &rc_open)