]> https://gitweb.dealii.org/ - dealii.git/commit
Rename a lambda function and make it easier to read. 15416/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 21 Jun 2023 15:35:56 +0000 (09:35 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 21 Jun 2023 18:00:05 +0000 (12:00 -0600)
commit0f616272c01d4acc3ab5d19b53573f1984b25f0a
tree53e926ee2dbb23e8d4df3c757876a84f31efdf20
parent5ce6a1269e115adf5891869137cd9c2af6d97ded
Rename a lambda function and make it easier to read.

The function is currently called 'sort_constraints()', but it also makes
the elements of a vector unique. So call it 'sort_and_make_unique()'
instead.

More importantly, though, the function operates on a vector that it captures
by reference. That makes it hard to read at the place where it is called what
it works on. Make this more obvious by letting it take the object it works on
as an argument.
include/deal.II/lac/affine_constraints.templates.h

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.