]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix the problems on Mac with isnan and pow
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 2 Jul 2015 21:03:24 +0000 (23:03 +0200)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 2 Jul 2015 21:03:24 +0000 (23:03 +0200)
include/deal.II/lac/vector.templates.h
source/base/config.cc

index 31f6bc50e7a2f5c560d484354dbf3970d470745d..45d39d3f4037e1a9bc549cee60e3e3abeacb179f 100644 (file)
@@ -1472,6 +1472,14 @@ Vector<Number>::lp_norm (const real_type p) const
 }
 
 
+template <>
+typename Vector<int>::real_type
+Vector<int>::lp_norm (const real_type) const
+{
+  Assert(false, ExcMessage("No lp norm for integer vectors"));
+  return -1;
+}
+
 
 template <typename Number>
 typename Vector<Number>::real_type
index 82e01557593a21eae795091eba7c69e45cc0d8bf..265c04035cbb25340cc2617462ec00dcc020e708 100644 (file)
@@ -25,7 +25,7 @@ namespace numbers
   bool is_finite (const double x)
   {
 #ifdef DEAL_II_HAVE_ISFINITE
-    return !isnan(x) && std::isfinite (x);
+    return !std::isnan(x) && std::isfinite (x);
 #else
     // Check against infinities. Note
     // that if x is a NaN, then both

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.