Skip to content

Commit

Permalink
Use relative tolerances.
Browse files Browse the repository at this point in the history
  • Loading branch information
bangerth committed Aug 17, 2023
1 parent a52229f commit ebcb479
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/grid/tria_description.cc
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ namespace TriangulationDescription
const std::pair<unsigned int, Point<spacedim>> &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;
}
Expand Down

0 comments on commit ebcb479

Please sign in to comment.