Skip to content
Snippets Groups Projects
Commit e9856c8c authored by carlocamilloni's avatar carlocamilloni
Browse files

OFile: one more barrier for backup files

parent cb74cd45
No related branches found
No related tags found
No related merge requests found
...@@ -341,6 +341,9 @@ OFile& OFile::rewind() { ...@@ -341,6 +341,9 @@ OFile& OFile::rewind() {
int check=rename(fname.c_str(),backup.c_str()); int check=rename(fname.c_str(),backup.c_str());
plumed_massert(check==0,"renaming "+fname+" into "+backup+" failed for reason: "+strerror(errno)); plumed_massert(check==0,"renaming "+fname+" into "+backup+" failed for reason: "+strerror(errno));
} }
if(comm) comm->Barrier();
if(gzfp) { if(gzfp) {
#ifdef __PLUMED_HAS_ZLIB #ifdef __PLUMED_HAS_ZLIB
gzfp=(void*)gzopen(const_cast<char*>(this->path.c_str()),"w9"); gzfp=(void*)gzopen(const_cast<char*>(this->path.c_str()),"w9");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment