]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix reserve in NoncontiguousPartitioner 9730/head
authorPeter Munch <peterrmuench@gmail.com>
Wed, 25 Mar 2020 07:23:37 +0000 (08:23 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 25 Mar 2020 07:23:37 +0000 (08:23 +0100)
include/deal.II/base/mpi_noncontiguous_partitioner.templates.h

index 085c66772ac5871f1e951995f0866e639b5bb6db..3a61e66a55b945345cd71a2009f5d9ac1e81e236 100644 (file)
@@ -193,7 +193,7 @@ namespace Utilities
           indices_has_clean.push_back(i);
 
       std::vector<types::global_dof_index> 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)

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.