Make temperature and pressure coupling enums enum classes
[alexxy/gromacs.git] / src / gromacs / domdec / domdec_setup.cpp
index 200afa8a5f889f933ea3296558c95ecaa418e8e9..6cf0368a71afb4adb3e87b196a202c67ebcb58b6 100644 (file)
@@ -362,7 +362,8 @@ static float comm_cost_est(real               limit,
     {
         for (int j = i + 1; j < ddbox.npbcdim; j++)
         {
-            if (box[j][i] != 0 || ir.deform[j][i] != 0 || (ir.epc != epcNO && ir.compress[j][i] != 0))
+            if (box[j][i] != 0 || ir.deform[j][i] != 0
+                || (ir.epc != PressureCoupling::No && ir.compress[j][i] != 0))
             {
                 if (nc[j] > 1 && nc[i] == 1)
                 {
@@ -725,7 +726,7 @@ real getDDGridSetupCellSizeLimit(const gmx::MDLogger& mdlog,
                         "Scaling the initial minimum size with 1/%g (option -dds) = %g", dlb_scale, 1 / dlb_scale);
         cellSizeLimit /= dlb_scale;
     }
-    else if (ir.epc != epcNO)
+    else if (ir.epc != PressureCoupling::No)
     {
         GMX_LOG(mdlog.info)
                 .appendTextFormatted(