return nst;
}
-int check_nstglobalcomm(const gmx::MDLogger &mdlog, int nstglobalcomm, t_inputrec *ir)
+int check_nstglobalcomm(const gmx::MDLogger &mdlog, int nstglobalcomm, t_inputrec *ir, const t_commrec * cr)
{
if (!EI_DYNAMICS(ir->eI))
{
ir->nstcomm = nstglobalcomm;
}
- GMX_LOG(mdlog.info).appendTextFormatted(
- "Intra-simulation communication will occur every %d steps.\n", nstglobalcomm);
+ if (cr->nnodes > 1)
+ {
+ GMX_LOG(mdlog.info).appendTextFormatted(
+ "Intra-simulation communication will occur every %d steps.\n", nstglobalcomm);
+ }
return nstglobalcomm;
+
}
void rerun_parallel_comm(t_commrec *cr, t_trxframe *fr,
* inputrec and the value of mdrun -gcom. */
int check_nstglobalcomm(const gmx::MDLogger &mdlog,
int nstglobalcomm,
- t_inputrec *ir);
+ t_inputrec *ir,
+ const t_commrec * cr);
/*! \brief Return true if the \p value is equal across the set of multi-simulations
*
const bool bRerunMD = false;
int nstglobalcomm = mdrunOptions.globalCommunicationInterval;
- nstglobalcomm = check_nstglobalcomm(mdlog, nstglobalcomm, ir);
+ nstglobalcomm = check_nstglobalcomm(mdlog, nstglobalcomm, ir, cr);
bGStatEveryStep = (nstglobalcomm == 1);
groups = &top_global->groups;