From 93d3afcd0bbc2f8968b22bb9bd08db633bd887e5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 14 Dec 2023 22:39:05 -0700 Subject: [PATCH] Do not create arrays we do not use. --- source/grid/tria.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}); -- 2.39.5