From: wolf Date: Thu, 14 Nov 2002 22:36:10 +0000 (+0000) Subject: Use deal_II_numbers::PI instead of M_PI X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=666daf9786110854887c50c43dcd00d02b098a00;p=dealii-svn.git Use deal_II_numbers::PI instead of M_PI git-svn-id: https://svn.dealii.org/trunk@6767 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/quadrature_lib.cc b/deal.II/base/source/quadrature_lib.cc index b2c0847144..93827e2ec8 100644 --- a/deal.II/base/source/quadrature_lib.cc +++ b/deal.II/base/source/quadrature_lib.cc @@ -20,9 +20,6 @@ // for all lower dimensions as well. That is why in this file the check // is for deal_II_dimension >= any_number and not for == -#ifndef M_PI -# define M_PI 3.14159265358979323846 /* pi */ -#endif template number abs (const number a) @@ -42,7 +39,7 @@ QGauss<1>::QGauss (const unsigned int n) for (unsigned int i=1;i<=m;++i) { - z = std::cos(M_PI * (i-.25)/(n+.5)); + z = std::cos(deal_II_numbers::PI * (i-.25)/(n+.5)); // Newton-iteration do