Convert nbnxn_pairlist_set_t to class PairlistSet
[alexxy/gromacs.git] / src / gromacs / nbnxm / nbnxm.cpp
index 0aeb3d8d63164f07f1f99c0f4d8eb157b36300cc..270512b266978c9a54e05bf0b4e23207afd8dc64 100644 (file)
@@ -154,8 +154,9 @@ nonbonded_verlet_t::atomdata_add_nbat_f_to_f(const Nbnxm::AtomLocality  locality
                                              gmx_wallcycle             *wcycle)
 {
     /* Skip the non-local reduction if there was no non-local work to do */
-    if (locality == Nbnxm::AtomLocality::NonLocal &&
-        pairlistSets().pairlistSet(Nbnxm::InteractionLocality::NonLocal).nblGpu[0]->sci.empty())
+    if (!pairlistIsSimple() &&
+        locality == Nbnxm::AtomLocality::NonLocal &&
+        pairlistSets().pairlistSet(Nbnxm::InteractionLocality::NonLocal).gpuList()->sci.empty())
     {
         return;
     }