Fix a table generation bug for pme-shift
authorErik Lindahl <erik@kth.se>
Wed, 8 Jul 2015 20:43:17 +0000 (22:43 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 29 Jul 2015 18:30:59 +0000 (20:30 +0200)
commitf23a9950437a46be6ee8631fb69b341849c66895
treed78a0f42564d5da059da1efb84d9d1f97e467598
parent21b7e3a51c19187c28c2e4769c3e67135d30e9a7
Fix a table generation bug for pme-shift

The shift correction was not applied correctly to PME and PME-user
tables, but a value of 0 was used instead. This will not have
influenced any normal runs since the shift correction is applied
directly (analytically) in the current kernels. In theory it
might have resulted in 10^-5 relative errors at the cutoff that
are only likely to be visible in double precision if you were
(1) using PME-user electrostatics with custom tables, and
(2) applying shift modifiers (switch is fine). This is not a
setup we are testing anyway, and the PME-user options are likely
to go soon.

Change-Id: Ibd4d2388713879a6613938929edc2cba142b7c9b
src/gromacs/mdlib/tables.c