From 8fd1804755b0e39af1769f70268fea937057b276 Mon Sep 17 00:00:00 2001 From: Carlo Camilloni <carlo.camilloni@gmail.com> Date: Thu, 21 Jan 2016 11:08:05 +0100 Subject: [PATCH] MPI Barrier to wait all processes to read the input --- src/core/PlumedMain.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/PlumedMain.cpp b/src/core/PlumedMain.cpp index 26b4d7c46..ba0c1c535 100644 --- a/src/core/PlumedMain.cpp +++ b/src/core/PlumedMain.cpp @@ -525,7 +525,10 @@ void PlumedMain::readInputFile(std::string str){ std::vector<std::string> words; while(Tools::getParsedLine(ifile,words) && words[0]!="ENDPLUMED") readInputWords(words); log.printf("END FILE: %s\n",str.c_str()); - log.flush(); + log.flush(); + + //comm.Barrier(); + //if(comm.Get_rank()==0) multi_sim_comm.Barrier(); pilots=actionSet.select<ActionPilot*>(); } -- GitLab