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

Implementation of single-file multiple walkers

parent a09f101f
No related branches found
No related tags found
No related merge requests found
...@@ -654,6 +654,13 @@ isFirstStep(true) ...@@ -654,6 +654,13 @@ isFirstStep(true)
// open hills file for writing // open hills file for writing
hillsOfile_.link(*this); hillsOfile_.link(*this);
if(walkers_mpi){
int r=0;
if(comm.Get_rank()==0) r=multi_sim_comm.Get_rank();
comm.Bcast(r,0);
if(r>0) ifilesnames[mw_id_]="/dev/null";
hillsOfile_.enforceSuffix("");
}
hillsOfile_.open(ifilesnames[mw_id_]); hillsOfile_.open(ifilesnames[mw_id_]);
if(fmt.length()>0) hillsOfile_.fmtField(fmt); if(fmt.length()>0) hillsOfile_.fmtField(fmt);
hillsOfile_.addConstantField("multivariate"); hillsOfile_.addConstantField("multivariate");
......
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