Use constexpr for physical constants and move them into gmx namespace
[alexxy/gromacs.git] / src / gromacs / pbcutil / pbc.cpp
index dc66f205582802137c28301a8af76674d07662ac..3e6fbb662330101a9d3797c968fb841eebf51e91 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,2016,2017 by the GROMACS development team.
- * Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2018,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.
@@ -167,7 +167,7 @@ const char* check_box(PbcType pbcType, const matrix box)
 void matrix_convert(matrix box, const rvec vec, const rvec angleInDegrees)
 {
     rvec angle;
-    svmul(DEG2RAD, angleInDegrees, angle);
+    svmul(gmx::c_deg2Rad, angleInDegrees, angle);
     box[XX][XX] = vec[XX];
     box[YY][XX] = vec[YY] * cos(angle[ZZ]);
     box[YY][YY] = vec[YY] * sin(angle[ZZ]);