From 8f1e09047bd2f0679d87548c7ffc98aaea36dcc1 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Fri, 9 Feb 2024 12:58:59 +0100 Subject: [PATCH] FlexibleIndexStorage: fix memory allocation --- source/base/mpi_compute_index_owner_internal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5