Simplify handling of DD bonded distances
authorBerk Hess <hess@kth.se>
Wed, 4 Sep 2019 08:03:46 +0000 (10:03 +0200)
committerBerk Hess <hess@kth.se>
Wed, 4 Sep 2019 18:56:53 +0000 (20:56 +0200)
commit6726088e91ed4c23a017ac1a785dcce74d40896a
tree7785be83d3b020b40bec0eeeeba578c837440afa
parent3120011062ce1c7e1b807e1abd6026f499cf3d7f
Simplify handling of DD bonded distances

To simplify and clarify the DD setup code, we now always always store
the systemInfo.minCutoffForMultiBody and use a separate flag to tell
if we should increase the cut-off distance for bonded communication.
There is a minor behavioral change in that with large domains and
bonded communication filtering or DLB, the bonded cut-off is now
5% of the bonded cut-off longer as the margin is now included.
This has a negligible effect on performance in all cases.

Change-Id: Id409353c517181ac56e8d3f1f36c22c705aa8077
src/gromacs/domdec/domdec.cpp
src/gromacs/domdec/domdec_internal.h