Commit cff1e2a6 authored by Andreas Adelmann's avatar Andreas Adelmann
Browse files

Close file in destructor

parent 386c405f
......@@ -39,6 +39,13 @@ LossDataSink::LossDataSink() {
}
LossDataSink::~LossDataSink() {
h5_int64_t rc;
if(H5file_m) {
rc = H5CloseFile(H5file_m);
if(rc != H5_SUCCESS)
ERRORMSG("H5 rc= " << rc << " in " << __FILE__ << " @ line " << __LINE__ << endl);
}
Ippl::Comm->barrier();
}
void LossDataSink::openH5() {
......
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