Move the atomToInteractionLocality(...) into locality.h
[alexxy/gromacs.git] / src / gromacs / nbnxm / nbnxm.cpp
index 196befc92d22488042b9dc4c7c6d35834f5d0379..62febc366f525bd4c42c984220912c6efe4ea225 100644 (file)
@@ -181,7 +181,7 @@ void nonbonded_verlet_t::atomdata_add_nbat_f_to_f(const gmx::AtomLocality  local
 
     /* Skip the reduction if there was no short-range GPU work to do
      * (either NB or both NB and bonded work). */
-    if (!pairlistIsSimple() && !Nbnxm::haveGpuShortRangeWork(gpu_nbv, locality))
+    if (!pairlistIsSimple() && !Nbnxm::haveGpuShortRangeWork(gpu_nbv, atomToInteractionLocality(locality)))
     {
         return;
     }