From: Wolfgang Bangerth Date: Fri, 15 Dec 2023 05:39:05 +0000 (-0700) Subject: Do not create arrays we do not use. X-Git-Tag: relicensing~245^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d3afcd0bbc2f8968b22bb9bd08db633bd887e5;p=dealii.git Do not create arrays we do not use. --- diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 28011c22f7..9d20313b0a 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -2182,7 +2182,7 @@ namespace internal total_cells - tria_level.global_level_cell_indices.size(), numbers::invalid_dof_index); - if (dimension < space_dimension) + if (dimension == space_dimension - 1) { tria_level.direction_flags.reserve(total_cells); tria_level.direction_flags.insert( @@ -3646,7 +3646,7 @@ namespace internal level.parents.assign((size + 1) / 2, -1); - if (dim < spacedim) + if (dim == spacedim - 1) level.direction_flags.assign(size, true); level.neighbors.assign(size * max_faces_per_cell, {-1, -1});