]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify a test.
authorDavid Wells <drwells@email.unc.edu>
Fri, 27 Jun 2025 14:09:24 +0000 (10:09 -0400)
committerDavid Wells <drwells@email.unc.edu>
Fri, 27 Jun 2025 15:20:10 +0000 (11:20 -0400)
A previous commit added this function.

tests/grid/reference_cell_type_06.cc

index 6f7fd591b6e1d96875730144f19f725c8678c7dc..8e11673eb384797c9c7c61e123539afe251521e3 100644 (file)
@@ -65,15 +65,10 @@ test(const ReferenceCell &reference_cell)
       deallog << "  self-reported face measure = "
               << reference_cell.face_measure(face_no) << std::endl;
 
-      // TriaAccessor<0, 1, 1>::measure() does not yet exist
-      if constexpr (dim > 1)
-        {
-          Assert(std::fabs(
-                   measure -
-                   triangulation.begin_active()->face(face_no)->measure()) <
-                   1e-12,
-                 ExcInternalError());
-        }
+      Assert(std::fabs(measure -
+                       triangulation.begin_active()->face(face_no)->measure()) <
+               1e-12,
+             ExcInternalError());
       Assert(std::fabs(measure - reference_cell.face_measure(face_no)) < 1e-12,
              ExcInternalError());
     }

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.