Relax pull PBC check
commit3dfdadb8b7d632e4602d9348a4ff1c7f56115472
authorBerk Hess <hess@kth.se>
Tue, 21 Jun 2016 08:44:59 +0000 (21 10:44 +0200)
committerDavid van der Spoel <davidvanderspoel@gmail.com>
Thu, 7 Jul 2016 10:04:57 +0000 (7 12:04 +0200)
tree34af292fab73519d14ec1834c6fda503df9f4497
parentdd45357aa2179f594c0d482fc289f353e836097a
Relax pull PBC check

The check in the pull code for COM distances close to half the box
was to strict for directional pulling. Now dimensions orthogonal
to the pull vector are no longer checked. The check was actually
not strict enough for directional pulling along x or y in triclinic
units cells, but that is a corner case.
Furthermore, the direction-periodic hint is now only printed with
geometry direction.

Added tests for the maximum pull distance calcuation.

Fixes #1962.

Change-Id: I8e389ba3f0490ca67586fd10bdc9d71d9957ab45
src/gromacs/pulling/CMakeLists.txt
src/gromacs/pulling/pull.cpp
src/gromacs/pulling/pull.h
src/gromacs/pulling/pull_internal.h
src/gromacs/pulling/tests/CMakeLists.txt [copied from src/gromacs/pulling/CMakeLists.txt with 87% similarity]
src/gromacs/pulling/tests/pull.cpp [new file with mode: 0644]