]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix order of vertices of wedges in ReferenceCell::vertex 12845/head
authorPeter Munch <peterrmuench@gmail.com>
Tue, 19 Oct 2021 06:39:49 +0000 (08:39 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Tue, 19 Oct 2021 06:39:49 +0000 (08:39 +0200)
include/deal.II/grid/reference_cell.h

index 9b4e89efefb255dad7bd341ee24fbe7082b4971c..9a8305908d71b791c5dcfdb47a973f33e0d05a97 100644 (file)
@@ -903,12 +903,12 @@ ReferenceCell::vertex(const unsigned int v) const
     }
   else if ((dim == 3) && (*this == ReferenceCells::Wedge))
     {
-      static const Point<dim> vertices[6] = {Point<dim>{1.0, 0.0, 0.0},
+      static const Point<dim> vertices[6] = {Point<dim>{0.0, 0.0, 0.0},
+                                             Point<dim>{1.0, 0.0, 0.0},
                                              Point<dim>{0.0, 1.0, 0.0},
-                                             Point<dim>{0.0, 0.0, 0.0},
+                                             Point<dim>{0.0, 0.0, 1.0},
                                              Point<dim>{1.0, 0.0, 1.0},
-                                             Point<dim>{0.0, 1.0, 1.0},
-                                             Point<dim>{0.0, 0.0, 1.0}};
+                                             Point<dim>{0.0, 1.0, 1.0}};
       return vertices[v];
     }
   else

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.