Add more checks for division by zero
commit5023601307ea4a905e19d83113c2ac43aaf0d71e
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 10 Jan 2019 09:59:31 +0000 (10 10:59 +0100)
committerPaul Bauer <paul.bauer.q@gmail.com>
Thu, 10 Jan 2019 13:58:53 +0000 (10 14:58 +0100)
tree155fff599a396ea190acffc15c1f92a9bac4535c
parentbfd054e2245f835da395b2c29c52574054ce8561
Add more checks for division by zero

The rotation code was still vulnerable to numerical coincidences of
atom positions and slab centers.

Refs #1587
Refs #1431

Change-Id: If7928825d74226a5b25ed3441e6b6dbdf004115a
src/gromacs/pulling/pull_rotation.cpp