From: Peter Munch Date: Wed, 25 Mar 2020 07:23:37 +0000 (+0100) Subject: Fix reserve in NoncontiguousPartitioner X-Git-Tag: v9.2.0-rc1~368^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9730%2Fhead;p=dealii.git Fix reserve in NoncontiguousPartitioner --- diff --git a/include/deal.II/base/mpi_noncontiguous_partitioner.templates.h b/include/deal.II/base/mpi_noncontiguous_partitioner.templates.h index 085c66772a..3a61e66a55 100644 --- a/include/deal.II/base/mpi_noncontiguous_partitioner.templates.h +++ b/include/deal.II/base/mpi_noncontiguous_partitioner.templates.h @@ -193,7 +193,7 @@ namespace Utilities indices_has_clean.push_back(i); std::vector indices_want_clean; - indices_want_clean.reserve(indices_has.size()); + indices_want_clean.reserve(indices_want.size()); for (const auto &i : indices_want) if (i != numbers::invalid_dof_index)