Adrian Croucher <a.crouc...@auckland.ac.nz> writes: > hi, > > One of the users of my PETSc-based code has reported that HDF5 output > files can be corrupted and unusable if e.g. the run is killed. I've just > done a bit of reading about this and it appears to be a known issue with > HDF5. > > Some people suggest flushing the HDF5 file periodically to help prevent > data loss. I had a look at PetscViewerFlush() but it doesn't seem to be > implemented for the HDF5 viewer- is that correct?
Correct, but I think we can and should implement it. In your research just now, were there subtleties beyond this call? https://portal.hdfgroup.org/display/HDF5/H5F_FLUSH