From 406d8e04a1a3a9659639aa829d08114904a9273c Mon Sep 17 00:00:00 2001 From: deal Date: Wed, 3 Mar 2004 19:25:24 +0000 Subject: [PATCH] Loosen test slightly. git-svn-id: https://svn.dealii.org/trunk@8648 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/sparse_matrix_08.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/bits/sparse_matrix_08.cc b/tests/bits/sparse_matrix_08.cc index 314ce00021..dd47a152d7 100644 --- a/tests/bits/sparse_matrix_08.cc +++ b/tests/bits/sparse_matrix_08.cc @@ -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; } -- 2.39.5