From b3068200cd58a73e2a8f4cd973dc91af6fc5daf7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 27 Aug 2024 20:47:09 -0600 Subject: [PATCH] Sort a set of indices before importing into IndexSet. --- include/deal.II/lac/affine_constraints.templates.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.39.5