Move nr_nonperturbed out of t_ilist
[alexxy/gromacs.git] / src / gromacs / listed_forces / manage_threading.cpp
index f8d4ff05848abe7217f334ee91e08bc1d00d5371..b696861250d6a45d4ac5d005236941b590d201f0 100644 (file)
@@ -196,7 +196,7 @@ static bool ftypeHasPerturbedEntries(const t_idef& idef, int ftype)
 
     const t_ilist& ilist = idef.il[ftype];
 
-    return (idef.ilsort != ilsortNO_FE && ilist.nr_nonperturbed != ilist.nr);
+    return (idef.ilsort != ilsortNO_FE && idef.numNonperturbedInteractions[ftype] != ilist.nr);
 }
 
 //! Divides bonded interactions over threads and GPU