}
}
-t_blocka* makeBondedLinks(const gmx_mtop_t& mtop, gmx::ArrayRef<cginfo_mb_t> cginfo_mb)
+void makeBondedLinks(gmx_domdec_t* dd, const gmx_mtop_t& mtop, gmx::ArrayRef<cginfo_mb_t> cginfo_mb)
{
+
+ if (!dd->comm->systemInfo.filterBondedCommunication)
+ {
+ /* Only communicate atoms based on cut-off */
+ dd->comm->bondedLinks = nullptr;
+ return;
+ }
+
t_blocka* link = nullptr;
/* For each atom make a list of other atoms in the system
fprintf(debug, "Of the %d atoms %d are linked via bonded interactions\n", mtop.natoms, ncgi);
}
- return link;
+ dd->comm->bondedLinks = link;
}
typedef struct