From: Wolfgang Bangerth Date: Wed, 28 Aug 2024 02:47:09 +0000 (-0600) Subject: Sort a set of indices before importing into IndexSet. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3068200cd58a73e2a8f4cd973dc91af6fc5daf7;p=dealii.git Sort a set of indices before importing into IndexSet. --- diff --git a/include/deal.II/lac/affine_constraints.templates.h b/include/deal.II/lac/affine_constraints.templates.h index 2f311b9e56..d9ca0f1ff2 100644 --- a/include/deal.II/lac/affine_constraints.templates.h +++ b/include/deal.II/lac/affine_constraints.templates.h @@ -448,7 +448,7 @@ namespace internal std::vector constrained_indices_temp; for (const auto &line : constraints_in.get_lines()) constrained_indices_temp.push_back(line.index); - + std::sort(constrained_indices_temp.begin(), constrained_indices_temp.end()); constrained_indices.add_indices(constrained_indices_temp.begin(), constrained_indices_temp.end());