]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Slightly modify test case for gcc3
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 1 Oct 2001 09:18:05 +0000 (09:18 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 1 Oct 2001 09:18:05 +0000 (09:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@5127 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/block_vector_iterator.cc

index 4c6c03a874512e5f6ca8ce37201be61f00fa251e..fbde0466919c092d35c5d66461a67ec6ac4fb84e 100644 (file)
@@ -19,6 +19,7 @@
 #include <algorithm>
 #include <numeric>
 #include <utility>
+#include <cmath>
 
 template <typename number>
 bool operator == (const BlockVector<number> &v1,
@@ -134,7 +135,11 @@ void test ()
 
                                       // check backwards
       for (unsigned int i=0; i<v1.size(); ++i, --p1)
-       Assert (*p1 == v1.size()-i-1, ExcInternalError());
+       {
+         const double val = *p1;
+         const double ref = v1.size()-i-1;
+         Assert (val==ref, ExcInternalError());
+       };
 
                                       // if we came thus far,
                                       // everything is alright

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.