]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify a check 15859/head
authorMartin Kronbichler <martin.kronbichler@uni-a.de>
Tue, 8 Aug 2023 16:11:35 +0000 (18:11 +0200)
committerMartin Kronbichler <martin.kronbichler@uni-a.de>
Tue, 8 Aug 2023 16:12:44 +0000 (18:12 +0200)
include/deal.II/matrix_free/hanging_nodes_internal.h

index 6aab75c2534d57ba6589fa0c25903bf0ab20474a..739fd7b96337abf0c3ce592cb8b68ca8af55d343 100644 (file)
@@ -863,13 +863,11 @@ namespace internal
       const auto supported_components = compute_supported_components(
         cell->get_dof_handler().get_fe_collection());
 
-      if ([](const auto &supported_components) {
-            return std::none_of(supported_components.begin(),
-                                supported_components.end(),
-                                [](const auto &a) {
-                                  return *std::max_element(a.begin(), a.end());
-                                });
-          }(supported_components))
+      if (std::none_of(supported_components.begin(),
+                       supported_components.end(),
+                       [](const auto &a) {
+                         return *std::max_element(a.begin(), a.end());
+                       }))
         return false;
 
       // 2) determine the refinement configuration of the cell

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.