From bd20aa425a3c87c7a325ed7cb1546fead2692c06 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 8 Aug 2023 18:11:35 +0200 Subject: [PATCH] Simplify a check --- include/deal.II/matrix_free/hanging_nodes_internal.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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 -- 2.39.5