]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work around another compiler issue.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 11 Feb 2021 22:54:15 +0000 (15:54 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 12 Feb 2021 01:17:47 +0000 (18:17 -0700)
include/deal.II/grid/reference_cell.h

index 53f4e9ccad87ac756a6940176a4ad36fc434b523..4dc7c10feb682c1aaf3579a92b91c6e0acf4f750 100644 (file)
@@ -935,17 +935,15 @@ ReferenceCell::standard_vertex_to_face_and_vertex_index(
     }
   else if (*this == ReferenceCells::Tetrahedron)
     {
-      static const std::array<unsigned int, 2> table[4] = {{{0, 0}},
-                                                           {{0, 1}},
-                                                           {{0, 2}},
-                                                           {{1, 2}}};
+      static const std::array<std::array<unsigned int, 2>, 4> table = {
+        {{{0, 0}}, {{0, 1}}, {{0, 2}}, {{1, 2}}}};
 
       return table[vertex];
     }
   else if (*this == ReferenceCells::Pyramid)
     {
-      static const std::array<unsigned int, 2> table[5] = {
-        {{0, 0}}, {{0, 1}}, {{0, 2}}, {{0, 3}}, {{1, 2}}};
+      static const std::array<std::array<unsigned int, 2>, 5> table = {
+        {{{0, 0}}, {{0, 1}}, {{0, 2}}, {{0, 3}}, {{1, 2}}}};
 
       return table[vertex];
     }

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.