if (ddRole == DDRole::Master)
{
- dd_bonded_cg_distance(
- mdlog, &mtop, &ir, xGlobal, box, options.checkBondedInteractions, &r_2b, &r_mb);
+ const DDBondedChecking ddBondedChecking = options.checkBondedInteractions
+ ? DDBondedChecking::All
+ : DDBondedChecking::ExcludeZeroLimit;
+
+ dd_bonded_cg_distance(mdlog, &mtop, &ir, xGlobal, box, ddBondedChecking, &r_2b, &r_mb);
}
gmx_bcast(sizeof(r_2b), &r_2b, communicator);
gmx_bcast(sizeof(r_mb), &r_mb, communicator);
const gmx_mtop_t& mtop,
const gmx::VirtualSitesHandler* vsite,
const t_inputrec* ir,
- gmx_bool bBCheck,
+ const DDBondedChecking ddBondedChecking,
gmx::ArrayRef<cginfo_mb_t> cginfo_mb)
{
- dd_make_reverse_top(fplog, dd, &mtop, vsite, ir, bBCheck);
+ dd_make_reverse_top(fplog, dd, &mtop, vsite, ir, ddBondedChecking);
gmx_domdec_comm_t* comm = dd->comm;