h5 file initialization
The output file in HDF5 format (.h5) should be created only when the option ENABLEHDF5 = TRUE
. Currently, when this option is not selected, an empty file is created. In addition, the H5PartWrapper
call can be refactored to avoid code duplication.