]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Loosen test slightly.
authordeal <deal@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 3 Mar 2004 16:51:38 +0000 (16:51 +0000)
committerdeal <deal@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 3 Mar 2004 16:51:38 +0000 (16:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@8647 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/full_matrix_vector_07.cc

index 7d0b347e12c08de566ec25fd236d9d78dd6e846c..39803ce77b58f6599cae08c5587b64ab0d8b2adf 100644 (file)
@@ -1,6 +1,6 @@
 //----------------------------  full_matrix_vector_07.cc  ---------------------------
-//    $Id$
-//    Version: $Name$ 
+//    full_matrix_vector_07.cc,v 1.3 2004/02/26 17:25:34 wolf Exp
+//    Version:  
 //
 //    Copyright (C) 2004 by the deal.II authors
 //
@@ -56,7 +56,7 @@ void test (Vector<double> &v,
       Assert (x(i) == result, ExcInternalError());
     }
 
-  Assert (s == x.l2_norm(), ExcInternalError());
+  Assert (std::fabs((s - x.l2_norm())/s) < 1e-14, ExcInternalError());
 
   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.