From 44de1875428074d6ad206c609ff90123cc834b6a Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 25 Oct 2006 00:55:27 +0000 Subject: [PATCH] Use deal_II_numbers::PI instead of M_PI git-svn-id: https://svn.dealii.org/trunk@14079 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-9/step-9.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/deal.II/examples/step-9/step-9.cc b/deal.II/examples/step-9/step-9.cc index 87f41b7a71..5cc0d7712d 100644 --- a/deal.II/examples/step-9/step-9.cc +++ b/deal.II/examples/step-9/step-9.cc @@ -77,14 +77,6 @@ #include - - // In strict ANSI C mode, the - // following constant are not defined - // by default, so we do it ourselves: -#ifndef M_PI -# define M_PI 3.14159265358979323846 -#endif - // The last step is as in previous // programs: using namespace dealii; @@ -339,7 +331,7 @@ AdvectionField::value (const Point &p) const Point value; value[0] = 2; for (unsigned int i=1; i::value (const Point &p, { Assert (component == 0, ExcIndexRange (component, 0, 1)); - const double sine_term = std::sin(16*M_PI*std::sqrt(p.square())); + const double sine_term = std::sin(16*deal_II_numbers::PI*std::sqrt(p.square())); const double weight = std::exp(-5*p.square()) / std::exp(-5.); return sine_term * weight; } -- 2.39.5