]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make sure the size of the index set is updated. 15874/head
authorLuca Heltai <luca.heltai@sissa.it>
Sat, 12 Aug 2023 16:30:02 +0000 (18:30 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Sat, 12 Aug 2023 16:30:02 +0000 (18:30 +0200)
include/deal.II/lac/affine_constraints.templates.h

index 1b2ad3e379b881d24c1909f467417287ebfb468b..b1e61c6068ffec31dce84a28bea9fbdd42627709 100644 (file)
@@ -1025,7 +1025,7 @@ AffineConstraints<number>::shift(const size_type offset)
   else
     {
       // shift local_lines
-      IndexSet new_local_lines(local_lines.size());
+      IndexSet new_local_lines(local_lines.size() + offset);
       new_local_lines.add_indices(local_lines, offset);
       std::swap(local_lines, new_local_lines);
     }

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.