Use constexpr for physical constants and move them into gmx namespace
[alexxy/gromacs.git] / src / gromacs / trajectoryanalysis / modules / sasa.cpp
index 9ccc4c8f0194efef25f00b96195187c466350f2e..00466715da6e04b5b094f2422aebc7f920310dbe 100644 (file)
@@ -1076,7 +1076,7 @@ void Sasa::analyzeFrame(int frnr, const t_trxframe& fr, t_pbc* pbc, TrajectoryAn
         {
             totmass += surfaceSel.position(i).mass();
         }
-        const real density = totmass * AMU / (totvolume * NANO * NANO * NANO);
+        const real density = totmass * gmx::c_amu / (totvolume * gmx::c_nano * gmx::c_nano * gmx::c_nano);
         vh.startFrame(frnr, fr.time);
         vh.setPoint(0, totvolume);
         vh.setPoint(1, density);