Commit 17df46b5 authored by gsell's avatar gsell
Browse files

Structure/DataSink: use mode H5_O_RDWR for restart file

parent a128f7e2
......@@ -121,11 +121,7 @@ DataSink::DataSink(int restartStep) :
// Define file name.
fn += string(".h5");
#ifdef PARALLEL_IO
H5file_m = H5OpenFile(fn.c_str(), H5_FLUSH_STEP | H5_O_APPEND, Ippl::getComm());
#else
H5file_m = H5OpenFile(fn.c_str(), H5_FLUSH_STEP | H5_O_APPEND, 0);
#endif
H5file_m = H5OpenFile(fn.c_str(), H5_FLUSH_STEP | H5_O_RDWR, Ippl::getComm());
*gmsg << "Will append to " << fn << endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment