Fix too small GPU pair count estimates
authorBerk Hess <hess@kth.se>
Wed, 1 Jul 2015 13:46:40 +0000 (15:46 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 6 Jul 2015 08:22:05 +0000 (10:22 +0200)
commitba4c59d2c53aebef7f485df27c9b1158d4462304
tree97811f4e4e523bcd7a46ad92cf4160bea9cea5eb
parentc1da1c9bdd3b1e43aa2349265e07d6bc7d088d31
Fix too small GPU pair count estimates

For triclinic unit-cells with DD the non-local cluster pair count
estimate was too high, especially for thin local domains, due to an
incorrect estimate of the cluster size. Since the pair count estimate
for the local pair-list was determined as a total minus a non-local
estimate, the local estimate could get negative and cause exceptions.
Fixed the cluster size estimate and added a lower limit for the local
size estimate.

Fixes #1762.

Change-Id: I3489550968f66bc03ba4e6056017a58eba37f7cc
src/gromacs/mdlib/nbnxn_search.c