]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use relative tolerances. 15890/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 17 Aug 2023 20:28:15 +0000 (14:28 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 17 Aug 2023 22:54:52 +0000 (16:54 -0600)
source/grid/tria_description.cc

index 1a1410074d0b5e765c5c4c896f925a04f9ad4124..2043e65c2425332b071431ec690c2acfb9a60a04 100644 (file)
@@ -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;
                     }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.