i-RIC/iriclib_v4

Improve error checking so that raw HDF5 error is not output to solver console

Closed this issue · 0 comments

Currently, data checking is not done for reading grid attributes, and error message like below is output to solver console.

HDF5-DIAG: Error detected in HDF5 (1.8.21) thread 0:
  #000: D:\iRIC\dev_vc2019_64\iricdev-2019\lib\src\CMake-hdf5-1.8.21\hdf5-1.8.21\src\H5O.c line 249 in H5Oopen(): unable to open object
    major: Symbol table
    minor: Can't open object
  #001: D:\iRIC\dev_vc2019_64\iricdev-2019\lib\src\CMake-hdf5-1.8.21\hdf5-1.8.21\src\H5O.c line 1361 in H5O_open_name(): object not found
    major: Symbol table
    minor: Object not found
  #002: D:\iRIC\dev_vc2019_64\iricdev-2019\lib\src\CMake-hdf5-1.8.21\hdf5-1.8.21\src\H5Gloc.c line 428 in H5G_loc_find(): can't find object
    major: Symbol table
    minor: Object not found
  #003: D:\iRIC\dev_vc2019_64\iricdev-2019\lib\src\CMake-hdf5-1.8.21\hdf5-1.8.21\src\H5Gtraverse.c line 859 in H5G_traverse(): internal path traversal failed
    major: Symbol table
    minor: Object not found
  #004: D:\iRIC\dev_vc2019_64\iricdev-2019\lib\src\CMake-hdf5-1.8.21\hdf5-1.8.21\src\H5Gtraverse.c line 639 in H5G_traverse_real(): traversal operator failed
    major: Symbol table
    minor: Callback failed
  #005: D:\iRIC\dev_vc2019_64\iricdev-2019\lib\src\CMake-hdf5-1.8.21\hdf5-1.8.21\src\H5Gloc.c line 383 in H5G_loc_find_cb(): object 'aaa' doesn't exist
    major: Symbol table
    minor: Object not found

This information is needless for solver developers, so improve error checking, and explicitly output error message from iriclib to inform what caused the error.