]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use deal_II_numbers::PI instead of M_PI
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 14 Nov 2002 22:36:10 +0000 (22:36 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 14 Nov 2002 22:36:10 +0000 (22:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@6767 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/quadrature_lib.cc

index b2c0847144135a683b385c5d4e9044942af5ee9e..93827e2ec865cc13caf0b6e4aa6f22c3ba839272 100644 (file)
@@ -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 <typename number>
 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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.