From: Peter Munch Date: Fri, 9 Feb 2024 11:58:59 +0000 (+0100) Subject: FlexibleIndexStorage: fix memory allocation X-Git-Tag: relicensing~59^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16615%2Fhead;p=dealii.git FlexibleIndexStorage: fix memory allocation --- diff --git a/source/base/mpi_compute_index_owner_internal.cc b/source/base/mpi_compute_index_owner_internal.cc index ef3fd7300d..e31a8760cc 100644 --- a/source/base/mpi_compute_index_owner_internal.cc +++ b/source/base/mpi_compute_index_owner_internal.cc @@ -55,7 +55,7 @@ namespace Utilities // in case we have contiguous indices, only fill the vector upon // first request in `fill` - if (!index_range_contiguous) + if (use_vector && !index_range_contiguous) data.resize(size, invalid_index_value); }