Use constexpr for physical constants and move them into gmx namespace
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_density.cpp
index 950e69b231d0f4a726d1901f71ed3804f8035452..cade69fe5dd42564f16d67c9cf8c83bdf0acfd02 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
  * Copyright (c) 2013,2014,2015,2017,2018 by the GROMACS development team.
- * Copyright (c) 2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2019,2020,2021, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -589,7 +589,7 @@ static void plot_density(double*                 slDensity[],
             }
             if (dens_opt[0][0] == 'm')
             {
-                fprintf(den, "   %12g", ddd * AMU / (NANO * NANO * NANO));
+                fprintf(den, "   %12g", ddd * gmx::c_amu / (gmx::c_nano * gmx::c_nano * gmx::c_nano));
             }
             else
             {