From: Martin Kronbichler Date: Tue, 8 Aug 2023 16:11:35 +0000 (+0200) Subject: Simplify a check X-Git-Tag: relicensing~606^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd20aa425a3c87c7a325ed7cb1546fead2692c06;p=dealii.git Simplify a check --- diff --git a/include/deal.II/matrix_free/hanging_nodes_internal.h b/include/deal.II/matrix_free/hanging_nodes_internal.h index 6aab75c253..739fd7b963 100644 --- a/include/deal.II/matrix_free/hanging_nodes_internal.h +++ b/include/deal.II/matrix_free/hanging_nodes_internal.h @@ -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