From: Luca Heltai Date: Sat, 12 Aug 2023 16:30:02 +0000 (+0200) Subject: Make sure the size of the index set is updated. X-Git-Tag: relicensing~593^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74f039a2bc4fa6e5fa9e1cb7549e86d590b962fd;p=dealii.git Make sure the size of the index set is updated. --- diff --git a/include/deal.II/lac/affine_constraints.templates.h b/include/deal.II/lac/affine_constraints.templates.h index 1b2ad3e379..b1e61c6068 100644 --- a/include/deal.II/lac/affine_constraints.templates.h +++ b/include/deal.II/lac/affine_constraints.templates.h @@ -1025,7 +1025,7 @@ AffineConstraints::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); }