]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Sort a set of indices before importing into IndexSet.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 28 Aug 2024 02:47:09 +0000 (20:47 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 28 Aug 2024 02:49:43 +0000 (20:49 -0600)
include/deal.II/lac/affine_constraints.templates.h

index 2f311b9e56cfef9c39be59352bc32d6cec968be2..d9ca0f1ff2f21715d4f31787626d9363026a2753 100644 (file)
@@ -448,7 +448,7 @@ namespace internal
     std::vector<types::global_dof_index> 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());
 

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.