From: Wolfgang Bangerth Date: Thu, 17 Aug 2023 20:28:15 +0000 (-0600) Subject: Use relative tolerances. X-Git-Tag: relicensing~580^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15890%2Fhead;p=dealii.git Use relative tolerances. --- diff --git a/source/grid/tria_description.cc b/source/grid/tria_description.cc index 1a1410074d..2043e65c24 100644 --- a/source/grid/tria_description.cc +++ b/source/grid/tria_description.cc @@ -280,7 +280,9 @@ namespace TriangulationDescription const std::pair> &b) { if (a.first == b.first) { - Assert(a.second.distance(b.second) < 10e-8, + Assert(a.second.distance(b.second) <= + 1e-7 * + std::max(a.second.norm(), b.second.norm()), ExcInternalError()); return true; }