Use constexpr for physical constants and move them into gmx namespace
[alexxy/gromacs.git] / src / gromacs / mdlib / rf_util.cpp
index 4584876236e0802897f58858caa0d3499ffd8349..3eea60f6787681a5cb459296061f540eea7d196d 100644 (file)
@@ -74,7 +74,7 @@ void calc_rffac(FILE* fplog, real eps_r, real eps_rf, real Rc, real* krf, real*
                 Rc,
                 *krf,
                 *crf,
-                ONE_4PI_EPS0 / eps_r);
+                gmx::c_one4PiEps0 / eps_r);
         // Make sure we don't lose resolution in pow() by casting real arg to double
         real rmin = gmx::invcbrt(static_cast<double>(*krf * 2.0));
         fprintf(fplog, "The electrostatics potential has its minimum at r = %g\n", rmin);