Fix harmless bug with combination of group and twin-range
authorMark Abraham <mark.j.abraham@gmail.com>
Fri, 14 Feb 2014 17:29:34 +0000 (18:29 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 18 Feb 2014 21:52:51 +0000 (22:52 +0100)
commit4c4ede9304b085f351d02cff3c0a45599f6f0186
treeb27c6865e6f744ff5d5121afa75d11010b82d33b
parent501f7c95736dc745502b65d08ac33f498ffa82a4
Fix harmless bug with combination of group and twin-range

The combination of
* group cut-off scheme,
* coulomb-modifier != none,
* rcoulomb > rlist (ie. twin-range), and
* rlistlong == -1

was being treated by the wrong clause in readir.c because the check
for "might be zero at cutoff" did not consider the modifier. The only
behavioural difference was issuing a warning that there will be no
buffering.

The modifier checks have been refactored to make it possible to check
the modifier.

Also removed some useless checks for EVDW_SWITCH

Change-Id: Ic64f3f48be17f6d87230bc4060a31e1fb4343973
src/gromacs/gmxana/gmx_tune_pme.c
src/gromacs/gmxlib/inputrec.c
src/gromacs/gmxpreprocess/readir.c
src/gromacs/legacyheaders/inputrec.h
src/gromacs/legacyheaders/types/enums.h
src/gromacs/mdlib/ns.c
src/gromacs/mdlib/sim_util.c
src/programs/mdrun/runner.c