]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Need to include limits.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 28 Jul 2011 12:52:27 +0000 (12:52 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 28 Jul 2011 12:52:27 +0000 (12:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@23979 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/polynomial.cc

index 2fb0cfd957f0424f0aa37b58fc34fa272a316f38..972247184a7b6ea0a31d7a1ce4e86d17b658e44c 100644 (file)
@@ -18,6 +18,9 @@
 #include <deal.II/base/thread_management.h>
 
 #include <cmath>
+#ifdef HAVE_STD_NUMERIC_LIMITS
+#  include <limits>
+#endif
 
 DEAL_II_NAMESPACE_OPEN
 
@@ -83,10 +86,12 @@ namespace Polynomials
        }
 
                                // check for underflow and overflow
+#ifdef HAVE_STD_NUMERIC_LIMITS
     Assert (std::fabs(tmp_lagrange_weight) > std::numeric_limits<number>::min(),
            ExcMessage ("Underflow in computation of Lagrange denominator."));
     Assert (std::fabs(tmp_lagrange_weight) < std::numeric_limits<number>::max(),
            ExcMessage ("Overflow in computation of Lagrange denominator."));
+#endif
     lagrange_weight = 1./tmp_lagrange_weight;
   }
 

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.