Process negative sigma correctly with combrule 2 or 3
commit000c6b9e5d94d9e2c5efb592cfb038d9775e0c21
authorErik Lindahl <erik@kth.se>
Fri, 6 Jun 2014 07:48:45 +0000 (6 09:48 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 10 Jun 2014 13:31:39 +0000 (10 15:31 +0200)
treee444e98cbad850c227a2f9fd4b0331e05d0765a9
parentd40ce2b825efcece1ec5ad8b84229d7b96f4be08
Process negative sigma correctly with combrule 2 or 3

The initial combination rule code (for sigma/epsilon)
did not take negative sigma rules into account, which
caused segfaults instead of the values reaching the code
in convparm.c that handles sigma<0 during conversion
to c6/c12 (where it is used to signal c6=0).

Fixes #1391.

Change-Id: I437f06d67c5ecfb58d236590288ad122bcdf2df0
src/kernel/toppush.c