Fix clang-tidy-11 errors in NBNXM module, part 3
[alexxy/gromacs.git] / src / gromacs / nbnxm / pairlist_tuning.cpp
index b782bc5fdfcae1a64187ad26aac3d3914cc423db..ac00b1cd766296a52615acc42fb70efd40f67521 100644 (file)
@@ -516,7 +516,7 @@ void setupDynamicPairlistPruning(const gmx::MDLogger&       mdlog,
                                     JClusterSizePerListType[listParams->pairlistType] };
 
     /* Currently emulation mode does not support dual pair-lists */
-    const bool useGpuList = (listParams->pairlistType == PairlistType::HierarchicalNxN);
+    const bool useGpuList = sc_isGpuPairListType[listParams->pairlistType];
 
     if (supportsDynamicPairlistGenerationInterval(*ir) && getenv("GMX_DISABLE_DYNAMICPRUNING") == nullptr)
     {