-
- Downloads
HDF5: File constructor: Allow read-only, drop SWMR
Read-only: It's far too easy to corrupt an HDF5 file. Making it possible to open a file in read-only mode is an important step towards making that not quite as easy. SWMR: As explained in a comment, we can enable it in read-only mode by default; in read-and-write mode it can be enabled one the constructor returns, through the function swmrEnable(). As a result of this change, the line HDF5::File file(filename, true); which was legal in the past but not used by anyone to the best of my knowledge, will no longer compile.
Showing
- dune/fufem/hdf5/file.hh 33 additions, 24 deletionsdune/fufem/hdf5/file.hh
- dune/fufem/hdf5/sequenceio.hh 3 additions, 0 deletionsdune/fufem/hdf5/sequenceio.hh
- dune/fufem/hdf5/singletonwriter.hh 2 additions, 0 deletionsdune/fufem/hdf5/singletonwriter.hh
- dune/fufem/test/test-hdf5.cc 44 additions, 2 deletionsdune/fufem/test/test-hdf5.cc
Loading
Please register or sign in to comment