Fix overflow in LJ-PME nbnxn kernels
authorChristian Wennberg <christian.wennberg@scilifelab.se>
Mon, 28 Jul 2014 16:06:36 +0000 (18:06 +0200)
committerBerk Hess <hess@kth.se>
Mon, 28 Jul 2014 20:26:16 +0000 (22:26 +0200)
commit73ae4791e3a25a4c63a96fbc60d2fb245873a35f
treef3ae5aab70a97bcb0b4ad2dd1746fb4cc40ff328
parentcaad87a3617b2156f408609fab27c4f93917f919
Fix overflow in LJ-PME nbnxn kernels

The SIMD exp function in the LJ-PME nbnxn kernels could overflow
for pair distances far beyond the cut-off. Added a mask to avoid this.

Fixes #1552

Change-Id: Id87710f3815b341f53a69df0a2990d0bb4edfa74
src/gromacs/mdlib/nbnxn_kernels/simd_2xnn/nbnxn_kernel_simd_2xnn_inner.h
src/gromacs/mdlib/nbnxn_kernels/simd_4xn/nbnxn_kernel_simd_4xn_inner.h