1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-14 13:57:07 +01:00

Hadrons: meson field HDF5 IO done and tested

This commit is contained in:
2018-08-12 16:52:12 +01:00
parent 5be6a51044
commit 503259f9c9
2 changed files with 173 additions and 61 deletions

View File

@ -63,7 +63,7 @@ Group & Hdf5Writer::getGroup(void)
// Reader implementation ///////////////////////////////////////////////////////
Hdf5Reader::Hdf5Reader(const std::string &fileName)
: fileName_(fileName)
, file_(fileName.c_str(), H5F_ACC_RDONLY)
, file_(fileName.c_str(), H5F_ACC_RDWR)
{
group_ = file_.openGroup("/");
readSingleAttribute(dataSetThres_, HDF5_GRID_GUARD "dataset_threshold",