Skip to content
Snippets Groups Projects
Commit 23ce09d7 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Added PLUMED_ASYNC_SHARE env var

parent 4e7a107e
No related branches found
No related tags found
No related merge requests found
......@@ -331,6 +331,12 @@ void Atoms::DomainDecomposition::enable(Communicator& c) {
on=true;
Set_comm(c.Get_comm());
async=Get_size()<10;
if(std::getenv("PLUMED_ASYNC_SHARE")){
std::string s(std::getenv("PLUMED_ASYNC_SHARE"));
if(s=="yes") async=true;
else if(s=="no") async=false;
else plumed_merror("PLUMED_ASYNC_SHARE variable is set to " + s + "; should be yes or no");
}
}
void Atoms::setAtomsNlocal(int n) {
......
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