Skip to content
Snippets Groups Projects
Commit 1c103fc8 authored by Davide Branduardi's avatar Davide Branduardi
Browse files

Fixed outfile in case of no communicator

parent a9beb5ac
No related branches found
No related tags found
No related merge requests found
......@@ -242,7 +242,7 @@ OFile& OFile::open(const std::string&path){
if(ff) std::fclose(ff);
if(fff) std::fclose(fff);
}
comm->Barrier();
if(comm)comm->Barrier();
fp=std::fopen(const_cast<char*>(this->path.c_str()),"w");
}
if(plumed) plumed->insertFile(*this);
......
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