Bug #2549

Inconsistent graph PBC results with monomers connected by restraints

Added by Berk Hess about 2 years ago. Updated almost 2 years ago.

core library
Target version:
Affected version - extra info:
all GROMACS versions
Affected version:


The graph code implicitly assumes that the bonded interactions connecting atoms in a moleculetype a short-ranged compared to the box size. But this is not necessarily the case when multiple monomers in a single moleculetype are connected by restraints. Such restraints can work over more than half the box length. In the current code this can lead to monomers being broken over PBC.
The least we should do is add a check for this, but this might be computationally expensive and/or complicated. The solution for the user would then be to increase the box size.
Ideally we would want a solution, but that can only be done through allowing the user to specify how the monomers should be connected.

Associated revisions

Revision 0ef40b73 (diff)
Added by Berk Hess about 2 years ago

Add fatal error for inconsistent graph

In case a moleculetype consists of multiple monomers connected
by restraints, an inconsistent graph could be generated.
Now a fatal error with explanation is generated for such cases.
Also a fatal error is generated with an inconsistent graph with long
bonds in general.

Fixes #2549

Change-Id: I6fa11fb7cefd74ed077c1fb523a2147c91e0d0fd


#1 Updated by Gerrit Code Review Bot about 2 years ago

Gerrit received a related patchset '1' for Issue #2549.
Uploader: Berk Hess ()
Change-Id: gromacs~release-2018~I6fa11fb7cefd74ed077c1fb523a2147c91e0d0fd
Gerrit URL:

#2 Updated by Berk Hess about 2 years ago

  • Status changed from Accepted to Fix uploaded

Resolved this by issuing a descriptive fatal error instead of only printing "inconsistent shifts" without terminating.

#3 Updated by Berk Hess about 2 years ago

  • Status changed from Fix uploaded to Resolved

#4 Updated by Paul Bauer almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF