]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor adjustments to one test.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 9 Nov 2017 14:52:03 +0000 (07:52 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 9 Nov 2017 14:52:03 +0000 (07:52 -0700)
tests/vector_tools/integrate_difference_01.cc

index 3814f96155ba3f39b0c9a5ecdd0780c92b1499b0..409028cd05fe98a6d03cdcfaffd62570a4389abd 100644 (file)
@@ -28,6 +28,8 @@
 #include <deal.II/grid/grid_refinement.h>
 #include <deal.II/fe/fe_q.h>
 #include <deal.II/fe/fe_system.h>
+#include <deal.II/base/signaling_nan.h>
+
 
 using namespace dealii;
 
@@ -50,6 +52,8 @@ public:
       return p[0]*p[0]+p[1]*p[1];
     if (c==2)
       return p[2]+p[0]*p[1];
+    else
+      return numbers::signaling_nan<double>();
   }
 };
 
@@ -108,5 +112,4 @@ int main (int argc, char **argv)
 {
   initlog();
   test<2>();
-
 }

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.