From: Daniel Arndt Date: Mon, 26 Aug 2019 22:33:42 +0000 (-0400) Subject: Reserve space for constrained indices X-Git-Tag: v9.2.0-rc1~1159^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8646%2Fhead;p=dealii.git Reserve space for constrained indices --- diff --git a/include/deal.II/lac/affine_constraints.templates.h b/include/deal.II/lac/affine_constraints.templates.h index 0bebac51bd..4670b160ae 100644 --- a/include/deal.II/lac/affine_constraints.templates.h +++ b/include/deal.II/lac/affine_constraints.templates.h @@ -1905,6 +1905,7 @@ namespace internal { Assert(shift == 0, ExcNotImplemented()); std::vector constrained_local_dofs_host; + constrained_local_dofs_host.reserve(cm.size()); for (const auto global_index : cm) if (vec.in_local_range(global_index))