]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Pass number of vertices to CellData 10542/head
authorPeter Munch <peterrmuench@gmail.com>
Wed, 17 Jun 2020 19:17:00 +0000 (21:17 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 17 Jun 2020 19:17:00 +0000 (21:17 +0200)
include/deal.II/grid/tria_description.h
source/grid/tria_description.cc

index 2dd0cf15050704414508f32f7e070316819ae2d5..63bc1b30f7c0e028e97587b8eeaade88fb330c14 100644 (file)
@@ -121,7 +121,8 @@ struct CellData
    * - boundary or material id zero (the default for boundary or material ids)
    * - manifold id to numbers::flat_manifold_id
    */
-  CellData();
+  CellData(
+    const unsigned int n_vertices = GeometryInfo<structdim>::vertices_per_cell);
 
   /**
    * Comparison operator.
index bcec7bcb3151e377afc1d774c0085d2f4dbc1fab..b59c2e0b1f3bc78d224a7ee38c08d22a9b3a17c6 100644 (file)
@@ -29,9 +29,8 @@ DEAL_II_NAMESPACE_OPEN
 
 
 template <int structdim>
-CellData<structdim>::CellData()
-  : vertices(GeometryInfo<structdim>::vertices_per_cell,
-             numbers::invalid_unsigned_int)
+CellData<structdim>::CellData(const unsigned int n_vertices)
+  : vertices(n_vertices, numbers::invalid_unsigned_int)
   , material_id(0)
   , manifold_id(numbers::flat_manifold_id)
 {}

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.