The wrong atom indexes were used when checking the coordinates
of atoms in a pull group (commit
aa102e691d59b4de37c8e4).
That lead to false reports of too large pull group
(and presumably false negatives). This fixes the problem.
Refs #2397
Change-Id: Ib7d7e648204c0d1b219714610de7fb5842713048
for (gmx::index indexInSet = 0; indexInSet < localAtomIndices.size(); indexInSet++)
{
rvec dx;
- pbc_dx(&pbc, x[indexInSet], x_pbc, dx);
+ pbc_dx(&pbc, x[localAtomIndices[indexInSet]], x_pbc, dx);
bool atomIsTooFar = false;
if (pbcIsRectangular)