From 4642c8968b291272709bd861a41f24a8f400e72a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 17 Aug 2023 14:28:15 -0600 Subject: [PATCH] Use relative tolerances. --- source/grid/tria_description.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.5