Fix PME load balancing skipping a setup
authorBerk Hess <hess@kth.se>
Mon, 4 Jan 2016 14:06:46 +0000 (15:06 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 8 Jan 2016 16:55:50 +0000 (17:55 +0100)
commitb33a991d7e95ced3e106597129e51a8229dc252e
treedd1353c60dcc17f30466e9a4ec650cc17288da19
parent330a3cf94e7455e8ea027d2ec682319ea84e1493
Fix PME load balancing skipping a setup

During stage 0 of the PME tuning we only time every second setup.
In stage 1 only a reduced range of setups is considered. If the tpr
setup (setup index 0) was not part of this reduced range, the first
setup in the range would never be timed. This could lead to choosing
a non-bonded cut-off that was longer than optimal.

Fixes #1880

Also fixed two conditionals (but this had no effect on the settings).

Change-Id: Id9f361d23e3294e41553b39ae8e8f37ceb80bbe5
src/gromacs/ewald/pme-load-balancing.cpp