From c3f90063edff8eae69d466307e72823482429e0b Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 29 Aug 2023 13:35:14 +0200 Subject: [PATCH] MatrixFree: Use constexpr when selecting evaluator factory --- include/deal.II/matrix_free/fe_evaluation.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/deal.II/matrix_free/fe_evaluation.h b/include/deal.II/matrix_free/fe_evaluation.h index d6381d957a..3c291b67ef 100644 --- a/include/deal.II/matrix_free/fe_evaluation.h +++ b/include/deal.II/matrix_free/fe_evaluation.h @@ -7848,7 +7848,7 @@ FEEvaluationcell_type > internal::MatrixFreeFunctions::affine)) evaluation_flag_actual |= EvaluationFlags::values; - if (fe_degree > -1) + if constexpr (fe_degree > -1) { SelectEvaluator:: evaluate(n_components, evaluation_flag_actual, values_array, *this); @@ -8077,7 +8077,7 @@ FEEvaluation -1) + if constexpr (fe_degree > -1) { SelectEvaluator:: integrate(n_components, @@ -8540,7 +8540,7 @@ FEFaceEvaluationcell_type > internal::MatrixFreeFunctions::affine)) evaluation_flag_actual |= EvaluationFlags::values; - if (fe_degree > -1) + if constexpr (fe_degree > -1) internal::FEFaceEvaluationImplEvaluateSelector:: template run(n_components, evaluation_flag_actual, @@ -8646,7 +8646,7 @@ FEFaceEvaluation -1) + if constexpr (fe_degree > -1) internal::FEFaceEvaluationImplIntegrateSelector:: template run(n_components, integration_flag_actual, @@ -8703,7 +8703,7 @@ FEFaceEvaluationdof_info->index_storage_variants[this->dof_access_index] [this->cell])) { - if (fe_degree > -1) + if constexpr (fe_degree > -1) { internal::FEFaceEvaluationImplGatherEvaluateSelector< dim, @@ -8820,7 +8820,7 @@ FEFaceEvaluationdof_info->index_storage_variants[this->dof_access_index] [this->cell])) { - if (fe_degree > -1) + if constexpr (fe_degree > -1) { internal::FEFaceEvaluationImplIntegrateScatterSelector< dim, -- 2.39.5