Use enum class for gmx_omp_nthreads
[alexxy/gromacs.git] / src / gromacs / nbnxm / gridset.cpp
index 6b6b84ef97f26b3ed28512635b1d143c22538732..3070568e74fd2ec58e510964585cd58d2b7b6e8b 100644 (file)
@@ -206,7 +206,7 @@ void GridSet::putOnGrid(const matrix                   box,
     /* Make space for the new cell indices */
     gridSetData_.cells.resize(*atomRange.end());
 
-    const int nthread = gmx_omp_nthreads_get(emntPairsearch);
+    const int nthread = gmx_omp_nthreads_get(ModuleMultiThread::Pairsearch);
     GMX_ASSERT(nthread > 0, "We expect the OpenMP thread count to be set");
 
 #pragma omp parallel for num_threads(nthread) schedule(static)