]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Code review. 13735/head
authorLuca Heltai <luca.heltai@sissa.it>
Tue, 17 May 2022 19:32:43 +0000 (22:32 +0300)
committerLuca Heltai <luca.heltai@sissa.it>
Tue, 17 May 2022 19:32:43 +0000 (22:32 +0300)
include/deal.II/cgal/triangulation.h

index 53beb4dc742b13a5c6ca38005f350181090caa7c..b6aa1d2e9a566d21b01e32d754a2454eb0dc5f70 100644 (file)
@@ -236,7 +236,7 @@ namespace CGALWrappers
          cgal_cell != cgal_triangulation.cells_in_complex_end();
          ++cgal_cell)
       {
-        CellData<3> cell(4);
+        CellData<3> cell(ReferenceCells::Tetrahedron.n_vertices());
         for (unsigned int i = 0; i < 4; ++i)
           cell.vertices[i] = cgal_to_dealii_vertex_map[cgal_cell->vertex(i)];
         cell.manifold_id = cgal_triangulation.subdomain_index(cgal_cell);
@@ -252,7 +252,7 @@ namespace CGALWrappers
              ++face)
           {
             const auto &[cgal_cell, cgal_vertex_face_index] = *face;
-            CellData<2> dealii_face(3);
+            CellData<2> dealii_face(ReferenceCells::Triangle.n_vertices());
             // A face is identified by a cell and by the index within the cell
             // of the opposite vertex. Loop over vertices, and retain only those
             // that belong to this face.
@@ -275,7 +275,7 @@ namespace CGALWrappers
              ++edge)
           {
             const auto &[cgal_cell, v1, v2] = *edge;
-            CellData<1> dealii_edge(2);
+            CellData<1> dealii_edge(ReferenceCells::Line.n_vertices());
             dealii_edge.vertices[0] =
               cgal_to_dealii_vertex_map[cgal_cell->vertex(v1)];
             dealii_edge.vertices[1] =

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.