]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Be explicit about types.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 17 Aug 2023 20:25:18 +0000 (14:25 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 17 Aug 2023 22:54:52 +0000 (16:54 -0600)
source/grid/tria_description.cc

index f386a3a2a3eeaf1b1fc3ffb8aa0209e190af81ec..1a1410074d0b5e765c5c4c896f925a04f9ad4124 100644 (file)
@@ -268,21 +268,24 @@ namespace TriangulationDescription
           {
             std::sort(this->coarse_cell_vertices.begin(),
                       this->coarse_cell_vertices.end(),
-                      [](const auto &a, const auto &b) {
+                      [](const std::pair<unsigned int, Point<spacedim>> &a,
+                         const std::pair<unsigned int, Point<spacedim>> &b) {
                         return a.first < b.first;
                       });
             this->coarse_cell_vertices.erase(
-              std::unique(this->coarse_cell_vertices.begin(),
-                          this->coarse_cell_vertices.end(),
-                          [](const auto &a, const auto &b) {
-                            if (a.first == b.first)
-                              {
-                                Assert(a.second.distance(b.second) < 10e-8,
-                                       ExcInternalError());
-                                return true;
-                              }
-                            return false;
-                          }),
+              std::unique(
+                this->coarse_cell_vertices.begin(),
+                this->coarse_cell_vertices.end(),
+                [](const std::pair<unsigned int, Point<spacedim>> &a,
+                   const std::pair<unsigned int, Point<spacedim>> &b) {
+                  if (a.first == b.first)
+                    {
+                      Assert(a.second.distance(b.second) < 10e-8,
+                             ExcInternalError());
+                      return true;
+                    }
+                  return false;
+                }),
               this->coarse_cell_vertices.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.