Use enum class for gmx_omp_nthreads
[alexxy/gromacs.git] / src / gromacs / mdrun / tpi.cpp
index 758e2ae6917d9adc9162469b77a7b86724538b5c..687908ebe5195fa2587dde30af1905ada73a5dfa 100644 (file)
@@ -163,7 +163,8 @@ namespace gmx
 // TODO: Convert to use the nbnxm kernels by putting the system and the teset molecule on two separate search grids
 void LegacySimulator::do_tpi()
 {
-    GMX_RELEASE_ASSERT(gmx_omp_nthreads_get(emntDefault) == 1, "TPI does not support OpenMP");
+    GMX_RELEASE_ASSERT(gmx_omp_nthreads_get(ModuleMultiThread::Default) == 1,
+                       "TPI does not support OpenMP");
 
     gmx_localtop_t    top(top_global.ffparams);
     gmx::ForceBuffers f;
@@ -191,7 +192,7 @@ void LegacySimulator::do_tpi()
     double            invbinw, *bin, refvolshift, logV, bUlogV;
     gmx_bool          bEnergyOutOfBounds;
     const char*       tpid_leg[2] = { "direct", "reweighted" };
-    auto              mdatoms     = mdAtoms->mdatoms();
+    auto*             mdatoms     = mdAtoms->mdatoms();
 
     GMX_UNUSED_VALUE(outputProvider);