From: Wolfgang Bangerth Date: Thu, 12 Apr 2001 15:12:25 +0000 (+0000) Subject: Fix silly bug. X-Git-Tag: v8.0.0~19332 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ebfdb1f57fa5d2cd57f3b951f26b5fd1b140243;p=dealii.git Fix silly bug. git-svn-id: https://svn.dealii.org/trunk@4454 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/numerics/derivative_approximation.cc b/deal.II/deal.II/source/numerics/derivative_approximation.cc index c079bb176c..439c5b09c7 100644 --- a/deal.II/deal.II/source/numerics/derivative_approximation.cc +++ b/deal.II/deal.II/source/numerics/derivative_approximation.cc @@ -304,7 +304,7 @@ C DEFINE A TEST MATRIX // degenerate case with three // identical eigenvalues. check // this first - if (R < 1e-14*am) + if (R < 1e-14*std::fabs(am)) EE[0] = EE[1] = EE[2] = am; else { @@ -313,7 +313,7 @@ C DEFINE A TEST MATRIX const double R3 = R*R*R; const double XX = 4. * J3 / R3; const double YY = 1. - std::fabs(XX); - + Assert (YY > -1e-14, ExcInternalError()); if (YY < 0) @@ -332,8 +332,6 @@ C DEFINE A TEST MATRIX }; }; - cout << "EE=" << EE[0] << ' ' << EE[1] << ' ' << EE[2] << endl; - return std::max (std::fabs (EE[0]), std::max (std::fabs (EE[1]), std::fabs (EE[2])));