]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename the argument of a lambda function. 17649/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 3 Sep 2024 23:59:13 +0000 (17:59 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 3 Sep 2024 23:59:13 +0000 (17:59 -0600)
include/deal.II/lac/affine_constraints.templates.h

index 2a7131a21c491e2c2c46fb09f78db65625ca8ae3..d8bf6daa14e82abc775b70ca49b87abe7321e6c3 100644 (file)
@@ -323,13 +323,13 @@ namespace internal
     // First define a helper function that sorts and normalizes the constraints
     // provided through the function's argument:
     const auto sort_and_make_unique =
-      [](std::vector<ConstraintLine> &locally_relevant_constraints) {
-        if (locally_relevant_constraints.empty())
+      [](std::vector<ConstraintLine> &constraints) {
+        if (constraints.empty())
           return;
 
         // First sort the array of constraints by their index:
-        std::sort(locally_relevant_constraints.begin(),
-                  locally_relevant_constraints.end(),
+        std::sort(constraints.begin(),
+                  constraints.end(),
                   [](const ConstraintLine &l1, const ConstraintLine &l2) {
                     return l1.index < l2.index;
                   });
@@ -344,16 +344,16 @@ namespace internal
         // point, we just don't know yet. We deal with this by simply
         // dropping constraints for DoFs for which there is a previous
         // constraint in the list:
-        locally_relevant_constraints.erase(
-          std::unique(locally_relevant_constraints.begin(),
-                      locally_relevant_constraints.end(),
-                      [](const ConstraintLine &a, const ConstraintLine &b) {
-                        return (a.index == b.index);
-                      }),
-          locally_relevant_constraints.end());
+        constraints.erase(std::unique(constraints.begin(),
+                                      constraints.end(),
+                                      [](const ConstraintLine &a,
+                                         const ConstraintLine &b) {
+                                        return (a.index == b.index);
+                                      }),
+                          constraints.end());
 
         // For those constraints that survive, sort the right hand side arrays:
-        for (ConstraintLine &entry : locally_relevant_constraints)
+        for (ConstraintLine &entry : constraints)
           std::sort(entry.entries.begin(),
                     entry.entries.end(),
                     [](const auto &l1, const auto &l2) {

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.