Use constexpr for physical constants and move them into gmx namespace
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_rama.cpp
index c10b87746868f8ac2754741d888dcd1a575cc9e1..24c554cb8c584b140d5c19c478c6ac9da8323e32 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015,2017,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2017,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.
@@ -58,8 +58,8 @@ static void plot_rama(FILE* out, t_xrama* xr)
 
     for (i = 0; (i < xr->npp); i++)
     {
-        phi = xr->dih[xr->pp[i].iphi].ang * RAD2DEG;
-        psi = xr->dih[xr->pp[i].ipsi].ang * RAD2DEG;
+        phi = xr->dih[xr->pp[i].iphi].ang * gmx::c_rad2Deg;
+        psi = xr->dih[xr->pp[i].ipsi].ang * gmx::c_rad2Deg;
         fprintf(out, "%g  %g  %s\n", phi, psi, xr->pp[i].label);
     }
 }