From 69c2779b509cf2e6d2741776b7e065ea28a63b78 Mon Sep 17 00:00:00 2001 From: Logan Harbour Date: Mon, 14 Nov 2022 13:25:36 -0700 Subject: [PATCH] Make within_edge_on_side more robust with a relative tolerance --- src/geom/intersection_tools.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/geom/intersection_tools.C b/src/geom/intersection_tools.C index f2f476b177f..09a6684001f 100644 --- a/src/geom/intersection_tools.C +++ b/src/geom/intersection_tools.C @@ -120,17 +120,17 @@ bool within_edge_on_side(const Elem & elem, if (within_result == BETWEEN) { corner.set_edge(last_v, other_v); - libmesh_assert(corner.build_edge(elem)->close_to_point(p, tol)); + libmesh_assert(corner.build_edge(elem)->contains_point(p, tol)); } else if (within_result == AT_BEGINNING) { corner.set_vertex(last_v); - libmesh_assert(elem.point(last_v).absolute_fuzzy_equals(p, tol)); + libmesh_assert(elem.point(last_v).relative_fuzzy_equals(p, tol)); } else { corner.set_vertex(other_v); - libmesh_assert(elem.point(other_v).absolute_fuzzy_equals(p, tol)); + libmesh_assert(elem.point(other_v).relative_fuzzy_equals(p, tol)); } return true; }