]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix wrong reference to variable in test. 1927/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 30 Nov 2015 13:45:12 +0000 (07:45 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 30 Nov 2015 14:27:36 +0000 (08:27 -0600)
tests/base/signaling_nan_table.cc

index 739b645d37900d1e29c5815c624765233d5a02f0..f6c1b2453d1756be668ccccff0e973706c2c7a15 100644 (file)
@@ -36,10 +36,9 @@ template <typename T>
 void check ()
 {
   Table<2,T> t;
-  const T x = numbers::signaling_nan<double>();
-  const T array[6] = { x,x,x,x,x,x };
 
-  t.reinit (2,3, &x);
+  t.reinit (2,3);
+  t.fill (numbers::signaling_nan<T>());
 
   deallog << "OK" << std::endl;
 }

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.