]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warnings 10743/head
authorPeter Munch <peterrmuench@gmail.com>
Thu, 23 Jul 2020 08:56:19 +0000 (10:56 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Thu, 23 Jul 2020 08:56:19 +0000 (10:56 +0200)
include/deal.II/grid/reference_cell.h
source/base/qprojector.cc

index 06572d2a190b3b450c3676a33597e0fdf01fba90..a17be580e29d689a0caaba008f22290f1d8dfded 100644 (file)
@@ -491,7 +491,7 @@ namespace ReferenceCell
           const unsigned char face_orientation) const override
         {
           static const std::array<std::array<unsigned int, 2>, 3> table = {
-            {{0, 1}, {1, 2}, {2, 0}}};
+            {{{0, 1}}, {{1, 2}}, {{2, 0}}}};
 
           return table[face][face_orientation ? vertex : (1 - vertex)];
         }
@@ -650,7 +650,7 @@ namespace ReferenceCell
           AssertIndexRange(face, n_faces());
 
           const static std::array<std::array<unsigned int, 3>, 4> table = {
-            {{0, 1, 2}, {0, 3, 4}, {2, 5, 3}, {1, 4, 5}}};
+            {{{0, 1, 2}}, {{0, 3, 4}}, {{2, 5, 3}}, {{1, 4, 5}}}};
 
           return table[face][standard_to_real_face_line(
             line, face, face_orientation)];
@@ -663,7 +663,7 @@ namespace ReferenceCell
           const unsigned char face_orientation) const override
         {
           static const std::array<std::array<unsigned int, 3>, 4> table = {
-            {{0, 1, 2}, {1, 0, 3}, {0, 2, 3}, {2, 1, 3}}};
+            {{{0, 1, 2}}, {{1, 0, 3}}, {{0, 2, 3}}, {{2, 1, 3}}}};
 
           return table[face][standard_to_real_face_vertex(
             vertex, face, face_orientation)];
index ccd41a6745c50243e5d370cf6e6698b330ab5f29..d9c87099c0dd082ab7ec0ecc7722e0c200d883bc 100644 (file)
@@ -530,9 +530,9 @@ QProjector<2>::project_to_all_faces(
 
       // ... on to the faces (defined by its support points and arc length)
       const std::array<std::pair<std::array<Point<2>, 2>, double>, 3> faces = {
-        {{{Point<2>(0.0, 0.0), Point<2>(1.0, 0.0)}, 1.0},
-         {{Point<2>(1.0, 0.0), Point<2>(0.0, 1.0)}, std::sqrt(2.0)},
-         {{Point<2>(0.0, 1.0), Point<2>(0.0, 0.0)}, 1.0}}};
+        {{{{Point<2>(0.0, 0.0), Point<2>(1.0, 0.0)}}, 1.0},
+         {{{Point<2>(1.0, 0.0), Point<2>(0.0, 1.0)}}, std::sqrt(2.0)},
+         {{{Point<2>(0.0, 1.0), Point<2>(0.0, 0.0)}}, 1.0}}};
 
       // linear polynomial to map the reference quadrature points correctly
       // on faces
@@ -554,10 +554,10 @@ QProjector<2>::project_to_all_faces(
             switch (orientation)
               {
                 case 0:
-                  support_points = {face.first[1], face.first[0]};
+                  support_points = {{face.first[1], face.first[0]}};
                   break;
                 case 1:
-                  support_points = {face.first[0], face.first[1]};
+                  support_points = {{face.first[0], face.first[1]}};
                   break;
                 default:
                   Assert(false, ExcNotImplemented());
@@ -645,21 +645,21 @@ QProjector<3>::project_to_all_faces(
       // ... on to the faces (defined by its support points and its area)
       // note: the area is later not used as a scaling factor but recomputed
       const std::array<std::pair<std::array<Point<3>, 3>, double>, 4> faces = {
-        {{{Point<3>(0.0, 0.0, 0.0),
-           Point<3>(1.0, 0.0, 0.0),
-           Point<3>(0.0, 1.0, 0.0)},
+        {{{{Point<3>(0.0, 0.0, 0.0),
+            Point<3>(1.0, 0.0, 0.0),
+            Point<3>(0.0, 1.0, 0.0)}},
           0.5},
-         {{Point<3>(1.0, 0.0, 0.0),
-           Point<3>(0.0, 0.0, 0.0),
-           Point<3>(0.0, 0.0, 1.0)},
+         {{{Point<3>(1.0, 0.0, 0.0),
+            Point<3>(0.0, 0.0, 0.0),
+            Point<3>(0.0, 0.0, 1.0)}},
           0.5},
-         {{Point<3>(0.0, 0.0, 0.0),
-           Point<3>(0.0, 1.0, 0.0),
-           Point<3>(0.0, 0.0, 1.0)},
+         {{{Point<3>(0.0, 0.0, 0.0),
+            Point<3>(0.0, 1.0, 0.0),
+            Point<3>(0.0, 0.0, 1.0)}},
           0.5},
-         {{Point<3>(0.0, 1.0, 0.0),
-           Point<3>(1.0, 0.0, 0.0),
-           Point<3>(0.0, 0.0, 1.0)},
+         {{{Point<3>(0.0, 1.0, 0.0),
+            Point<3>(1.0, 0.0, 0.0),
+            Point<3>(0.0, 0.0, 1.0)}},
           0.5 * sqrt(3.0) /*equilateral triangle*/}}};
 
       // linear polynomial to map the reference quadrature points correctly
@@ -682,34 +682,28 @@ QProjector<3>::project_to_all_faces(
             switch (orientation)
               {
                 case 1:
-                  support_points = {face.first[0],
-                                    face.first[1],
-                                    face.first[2]};
+                  support_points = {
+                    {face.first[0], face.first[1], face.first[2]}};
                   break;
                 case 3:
-                  support_points = {face.first[1],
-                                    face.first[0],
-                                    face.first[2]};
+                  support_points = {
+                    {face.first[1], face.first[0], face.first[2]}};
                   break;
                 case 5:
-                  support_points = {face.first[2],
-                                    face.first[0],
-                                    face.first[1]};
+                  support_points = {
+                    {face.first[2], face.first[0], face.first[1]}};
                   break;
                 case 0:
-                  support_points = {face.first[0],
-                                    face.first[2],
-                                    face.first[1]};
+                  support_points = {
+                    {face.first[0], face.first[2], face.first[1]}};
                   break;
                 case 2:
-                  support_points = {face.first[1],
-                                    face.first[2],
-                                    face.first[0]};
+                  support_points = {
+                    {face.first[1], face.first[2], face.first[0]}};
                   break;
                 case 4:
-                  support_points = {face.first[2],
-                                    face.first[1],
-                                    face.first[0]};
+                  support_points = {
+                    {face.first[2], face.first[1], face.first[0]}};
                   break;
                 default:
                   Assert(false, ExcNotImplemented());

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.