]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Reserve space for constrained indices 8646/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 26 Aug 2019 22:33:42 +0000 (18:33 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 26 Aug 2019 22:33:42 +0000 (18:33 -0400)
include/deal.II/lac/affine_constraints.templates.h

index 0bebac51bdc99e3881b9bcea34bb985a69bf811b..4670b160ae451e9eb9c7437beb0f98595fa175cb 100644 (file)
@@ -1905,6 +1905,7 @@ namespace internal
     {
       Assert(shift == 0, ExcNotImplemented());
       std::vector<size_type> constrained_local_dofs_host;
+      constrained_local_dofs_host.reserve(cm.size());
 
       for (const auto global_index : cm)
         if (vec.in_local_range(global_index))

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.