CUDA cut-off kernels now shift exclusion energies
authorBerk Hess <hess@kth.se>
Wed, 12 Mar 2014 07:23:19 +0000 (08:23 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 23 Mar 2014 10:58:00 +0000 (11:58 +0100)
commit5c13f5e8f699e5f1aefc37c31ea34a05344b190b
treef76a2448f39d768c47064f0976821133da00bcc7
parent93403f822075c47a3b553622c2309760d2142973
CUDA cut-off kernels now shift exclusion energies

This is to make the GPU kernels consistent with the CPU nbnxn
kernels, which for eeltype=cut-off modifier=potential-shift
effectively do reaction-field with epsilon_rf=1.
Also implemented shifting of the Coulomb potential for the group
cut-off scheme for non-excluded pairs only.
The manual now explains these details.

Also fixed the generic group kernel with an exact cutoff for
either Coulomb or VdW. I think this was supposed to not be supported
but neither grompp nor mdrun checked for this. The fix is trivial.

Change-Id: I48bff73587e43338162f90fa7d526e1909ce5ad1
manual/forcefield.tex
src/gromacs/gmxlib/nonbonded/nb_generic.c
src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda_kernel.cuh