Use constexpr for physical constants and move them into gmx namespace
[alexxy/gromacs.git] / src / gromacs / mdlib / dispersioncorrection.cpp
index 481c8597e79e9c96ff843df4f6a11838a216d356..2c8976f89ab78ef2c84783d4f631f24a87801f13 100644 (file)
@@ -634,7 +634,7 @@ DispersionCorrection::Correction DispersionCorrection::calculate(const matrix bo
             corr.virial += numCorr * density * avctwelve * iParams_.virdifftwelve_ / 3.0;
         }
         /* The factor 2 is because of the Gromacs virial definition */
-        corr.pressure = -2.0 * invvol * corr.virial * PRESFAC;
+        corr.pressure = -2.0 * invvol * corr.virial * gmx::c_presfac;
     }
 
     if (eFep_ != FreeEnergyPerturbationType::No)