Refactor md_enums
[alexxy/gromacs.git] / src / gromacs / domdec / domdec_setup.cpp
index 6cf0368a71afb4adb3e87b196a202c67ebcb58b6..6efa4d960c2661c4ca3f3c80775ea76a0200ef84 100644 (file)
@@ -299,8 +299,8 @@ real comm_box_frac(const gmx::IVec& dd_nc, real cutoff, const gmx_ddbox_t& ddbox
 /*! \brief Return whether the DD inhomogeneous in the z direction */
 static gmx_bool inhomogeneous_z(const t_inputrec& ir)
 {
-    return ((EEL_PME(ir.coulombtype) || ir.coulombtype == eelEWALD) && ir.pbcType == PbcType::Xyz
-            && ir.ewald_geometry == eewg3DC);
+    return ((EEL_PME(ir.coulombtype) || ir.coulombtype == CoulombInteractionType::Ewald)
+            && ir.pbcType == PbcType::Xyz && ir.ewald_geometry == EwaldGeometry::ThreeDC);
 }
 
 /*! \brief Estimate cost of PME FFT communication
@@ -633,7 +633,7 @@ static gmx::IVec optimizeDDCells(const gmx::MDLogger& mdlog,
                 .appendTextFormatted(
                         "Ewald_geometry=%s: assuming inhomogeneous particle distribution in z, "
                         "will not decompose in z.",
-                        eewg_names[ir.ewald_geometry]);
+                        enumValueToString(ir.ewald_geometry));
     }