Use constexpr for physical constants and move them into gmx namespace
[alexxy/gromacs.git] / src / gromacs / trajectoryanalysis / modules / freevolume.cpp
index f67303c92f896f29d0e5b3655a6f0995728ac665..e9f7cbd82756f3a7b5154840c65e6317d0ca2d7c 100644 (file)
@@ -388,7 +388,7 @@ void FreeVolume::writeOutput()
     printf("Total volume %.2f +/- %.2f nm^3\n", Vaver, Verror);
 
     printf("Number of molecules %d total mass %.2f Dalton\n", nmol_, mtot_);
-    double RhoAver  = mtot_ / (Vaver * 1e-24 * AVOGADRO);
+    double RhoAver  = mtot_ / (Vaver * 1e-24 * gmx::c_avogadro);
     double RhoError = gmx::square(RhoAver / Vaver) * Verror;
     printf("Average molar mass: %.2f Dalton\n", mtot_ / nmol_);