From b0fadc2c96aa87beaac8d639649f122095d77a8a Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 26 Aug 2019 18:33:42 -0400 Subject: [PATCH] Reserve space for constrained indices --- include/deal.II/lac/affine_constraints.templates.h | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.39.5