From 84754f5c87e83693fee9823f998706d67af84d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de> Date: Tue, 22 May 2018 11:14:43 +0200 Subject: [PATCH] [elastic][test] use M_PI --- test/geomechanics/elastic/problem.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/geomechanics/elastic/problem.hh b/test/geomechanics/elastic/problem.hh index a593a66fdd..90d7b9717c 100644 --- a/test/geomechanics/elastic/problem.hh +++ b/test/geomechanics/elastic/problem.hh @@ -73,6 +73,7 @@ class ElasticProblem : public GeomechanicsFVProblem<TypeTag> using Element = typename GridView::template Codim<0>::Entity; using GlobalPosition = typename Element::Geometry::GlobalCoordinate; + static constexpr Scalar pi = M_PI; static constexpr int dim = GridView::dimension; static constexpr int dimWorld = GridView::dimensionworld; using GradU = Dune::FieldMatrix<Scalar, dim, dimWorld>; @@ -116,7 +117,6 @@ public: using std::sin; using std::cos; - static const Scalar pi = 3.14159265358979323846; const auto ipGlobal = scv.center(); const auto x = ipGlobal[0]; const auto y = ipGlobal[1]; @@ -155,7 +155,6 @@ public: { using std::sin; - static const Scalar pi = 3.14159265358979323846; const auto x = globalPos[0]; const auto y = globalPos[1]; @@ -173,7 +172,6 @@ public: using std::sin; using std::cos; - static const Scalar pi = 3.14159265358979323846; const auto x = globalPos[0]; const auto y = globalPos[1]; -- GitLab