Move early return for nbnxm force reduction
commitabfa9ed502c2fce9bca256f66f35a2bf4e446e68
authorBerk Hess <hess@kth.se>
Tue, 26 Mar 2019 13:37:53 +0000 (26 14:37 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 28 Mar 2019 11:25:10 +0000 (28 12:25 +0100)
treef4971edbd20f50eb7457dc33c9e755c8ec0525a0
parent232727980cb6668894a40f5c5e0247c72d7fff31
Move early return for nbnxm force reduction

To reduce dependencies and code complexity, the early return for
avoiding overhead of a force reduction reducing no forces at all
has been moved from nonbonded_verlet_t to atomdata.cpp. The check
has been changed from no non-local work to no non-local atoms, which
should not affect performance much.

Change-Id: I3315699e15918482b321b702f6ba24209aa3a6b2
src/gromacs/nbnxm/atomdata.cpp
src/gromacs/nbnxm/nbnxm.cpp