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

tests/bits/sparse_matrix_08.cc

index 314ce00021ff29f76aeb6deac6d3c4aea01925a1..dd47a152d71f6cb2dd06dc3c6529cf73b86f3b37 100644 (file)
@@ -1,6 +1,6 @@
 //----------------------------  sparse_matrix_08.cc  ---------------------------
-//    $Id$
-//    Version: $Name$ 
+//    sparse_matrix_08.cc,v 1.4 2004/02/26 17:25:44 wolf Exp
+//    Version:  
 //
 //    Copyright (C) 2004 by the deal.II authors
 //
@@ -45,7 +45,7 @@ void test ()
                                    // compare against the exact value of the
                                    // l2-norm (max row-sum)
   deallog << m.frobenius_norm() << std::endl;
-  Assert (m.frobenius_norm() == norm, ExcInternalError());
+  Assert (std::fabs((m.frobenius_norm() - norm)/norm) < 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.