From: Peter Munch Date: Wed, 17 Jun 2020 19:17:00 +0000 (+0200) Subject: Pass number of vertices to CellData X-Git-Tag: v9.3.0-rc1~1423^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10542%2Fhead;p=dealii.git Pass number of vertices to CellData --- diff --git a/include/deal.II/grid/tria_description.h b/include/deal.II/grid/tria_description.h index 2dd0cf1505..63bc1b30f7 100644 --- a/include/deal.II/grid/tria_description.h +++ b/include/deal.II/grid/tria_description.h @@ -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::vertices_per_cell); /** * Comparison operator. diff --git a/source/grid/tria_description.cc b/source/grid/tria_description.cc index bcec7bcb31..b59c2e0b1f 100644 --- a/source/grid/tria_description.cc +++ b/source/grid/tria_description.cc @@ -29,9 +29,8 @@ DEAL_II_NAMESPACE_OPEN template -CellData::CellData() - : vertices(GeometryInfo::vertices_per_cell, - numbers::invalid_unsigned_int) +CellData::CellData(const unsigned int n_vertices) + : vertices(n_vertices, numbers::invalid_unsigned_int) , material_id(0) , manifold_id(numbers::flat_manifold_id) {}