From caaeec987e2bfede035a15e8913d7f51c0a80018 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Wed, 17 Jun 2020 21:17:00 +0200 Subject: [PATCH] Pass number of vertices to CellData --- include/deal.II/grid/tria_description.h | 3 ++- source/grid/tria_description.cc | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) {} -- 2.39.5