]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark an expression as 'constexpr'. 16266/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 13 Nov 2023 23:51:06 +0000 (16:51 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 13 Nov 2023 23:51:06 +0000 (16:51 -0700)
include/deal.II/base/geometry_info.h

index 1927e7cce22f8622deed7241e97f94d63efbd6c8..11205f1a9a2061446440038ab8fc2fc28768e2c1 100644 (file)
@@ -4425,9 +4425,9 @@ GeometryInfo<2>::child_cell_on_face(const RefinementCase<2> &ref_case,
   // this cell adjacent to the subface of a possibly
   // refined neighbor. this simplifies setting neighbor
   // information in execute_refinement.
-  const unsigned int
-    subcells[2][RefinementCase<2>::isotropic_refinement][faces_per_cell]
-            [max_children_per_face] = {
+  constexpr unsigned int
+    subcells[2][RefinementPossibilities<2>::isotropic_refinement]
+            [faces_per_cell][max_children_per_face] = {
               {
                 // Normal orientation (face_flip = false)
                 {{0, 0}, {1, 1}, {0, 1}, {0, 1}}, // cut_x

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.