]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid spurious warning for older clang compiler 6899/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 8 Jul 2018 11:22:53 +0000 (13:22 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 8 Jul 2018 11:22:53 +0000 (13:22 +0200)
examples/step-14/step-14.cc
examples/step-27/step-27.cc

index 47b659db5071b8ef69bcdb2571259ec517653fcc..e9d3df7eb5402bc403cecc50364d770b608568d5 100644 (file)
@@ -1277,18 +1277,18 @@ namespace Step14
 
       // Next, we have to define the cells and the vertices they contain.
       const std::vector<std::array<int, GeometryInfo<dim>::vertices_per_cell>>
-        cell_vertices = {{0, 1, 5, 6},
-                         {1, 2, 6, 7},
-                         {2, 3, 7, 8},
-                         {3, 4, 8, 9},
-                         {5, 6, 10, 11},
-                         {8, 9, 12, 13},
-                         {10, 11, 14, 15},
-                         {12, 13, 17, 18},
-                         {14, 15, 19, 20},
-                         {15, 16, 20, 21},
-                         {16, 17, 21, 22},
-                         {17, 18, 22, 23}};
+        cell_vertices = {{{0, 1, 5, 6}},
+                         {{1, 2, 6, 7}},
+                         {{2, 3, 7, 8}},
+                         {{3, 4, 8, 9}},
+                         {{5, 6, 10, 11}},
+                         {{8, 9, 12, 13}},
+                         {{10, 11, 14, 15}},
+                         {{12, 13, 17, 18}},
+                         {{14, 15, 19, 20}},
+                         {{15, 16, 20, 21}},
+                         {{16, 17, 21, 22}},
+                         {{17, 18, 22, 23}}};
 
       const unsigned int n_cells = cell_vertices.size();
 
index 8a1871d25d0481cef0378e188455ec15252cc6aa..9f3a32f8def90fa67cbe15ee9b6fcf999b633eec 100644 (file)
@@ -553,18 +553,18 @@ namespace Step27
       {-1.0, +1.0}, {-0.5, +1.0}, {+0.0, +1.0}, {+0.5, +1.0}, {+1.0, +1.0}};
 
     const std::vector<std::array<int, GeometryInfo<dim>::vertices_per_cell>>
-      cell_vertices = {{0, 1, 5, 6},
-                       {1, 2, 6, 7},
-                       {2, 3, 7, 8},
-                       {3, 4, 8, 9},
-                       {5, 6, 10, 11},
-                       {8, 9, 12, 13},
-                       {10, 11, 14, 15},
-                       {12, 13, 17, 18},
-                       {14, 15, 19, 20},
-                       {15, 16, 20, 21},
-                       {16, 17, 21, 22},
-                       {17, 18, 22, 23}};
+      cell_vertices = {{{0, 1, 5, 6}},
+                       {{1, 2, 6, 7}},
+                       {{2, 3, 7, 8}},
+                       {{3, 4, 8, 9}},
+                       {{5, 6, 10, 11}},
+                       {{8, 9, 12, 13}},
+                       {{10, 11, 14, 15}},
+                       {{12, 13, 17, 18}},
+                       {{14, 15, 19, 20}},
+                       {{15, 16, 20, 21}},
+                       {{16, 17, 21, 22}},
+                       {{17, 18, 22, 23}}};
 
     const unsigned int n_cells = cell_vertices.size();
 

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.