From e845a3a37e61612fb3ed8c1f1422bcca56617145 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 3 Jul 2023 17:33:49 -0600 Subject: [PATCH] Use a simpler scheme to determine whether a DoFHandler uses hp features. --- include/deal.II/matrix_free/matrix_free.templates.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/deal.II/matrix_free/matrix_free.templates.h b/include/deal.II/matrix_free/matrix_free.templates.h index 3e6cb35d6f..57738f52fc 100644 --- a/include/deal.II/matrix_free/matrix_free.templates.h +++ b/include/deal.II/matrix_free/matrix_free.templates.h @@ -1488,7 +1488,7 @@ namespace internal const bool hp_functionality_enabled = std::any_of(dof_handlers.begin(), dof_handlers.end(), [](const auto &dh) { - return (dh->get_fe_collection().size() > 1); + return dh->has_hp_capabilities(); }); const unsigned int n_lanes = task_info.vectorization_length; -- 2.39.5