move static constants to its own header that is only pulled in by files that use them.

This commit is contained in:
Axel Kohlmeyer
2022-03-12 08:21:23 -05:00
parent b27cbbd1a1
commit 25b4d8ade1
5 changed files with 187 additions and 166 deletions

View File

@ -28,8 +28,8 @@ namespace MathConst {
static constexpr double MY_PIS = 1.77245385090551602729; // sqrt(pi)
static constexpr double MY_ISPI4 = 1.12837916709551257389; // 1/sqrt(pi/4)
static constexpr double MY_SQRT2 = 1.41421356237309504880; // sqrt(2)
static constexpr double MY_ISQRT2 = 0.707106781186547524401; // 1/sqrt(2)
static constexpr double MY_CUBEROOT2 = 1.25992104989487316476; // 2*(1/3)
static constexpr double MY_SQRT1_2 = 0.707106781186547524401; // 1/sqrt(2)
} // namespace MathConst
} // namespace LAMMPS_NS