Skip to content
Snippets Groups Projects
Forked from agnumpde / dune-fufem
Source project has a limited visibility.
  • Elias Pipping's avatar
    42cea71b
    HDF5: File constructor: Allow read-only, drop SWMR · 42cea71b
    Elias Pipping authored
    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.
    42cea71b
    History
    HDF5: File constructor: Allow read-only, drop SWMR
    Elias Pipping authored
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.