From: Ralf Hartmann Date: Wed, 18 Jul 2001 09:38:49 +0000 (+0000) Subject: Use relative error rather than absolute error for checking for an internal error. X-Git-Tag: v8.0.0~18953 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f283511920278d86f92a407b330cae0616989af;p=dealii.git Use relative error rather than absolute error for checking for an internal error. git-svn-id: https://svn.dealii.org/trunk@4845 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/tria_boundary_lib.cc b/deal.II/deal.II/source/grid/tria_boundary_lib.cc index cadbfc8bad..5431ac6058 100644 --- a/deal.II/deal.II/source/grid/tria_boundary_lib.cc +++ b/deal.II/deal.II/source/grid/tria_boundary_lib.cc @@ -133,7 +133,7 @@ HyperBallBoundary::get_intermediate_points_between_points ( v1=p1-center; const double length=std::sqrt((v1-v0).square()); - double eps=1e-14; + double eps=1e-12; double r=0; if (compute_radius_automatically) { @@ -143,8 +143,10 @@ HyperBallBoundary::get_intermediate_points_between_points ( else r=radius; - Assert(std::fabs(v0.square()-r*r)