From: Martin Kronbichler Date: Tue, 29 Aug 2023 11:35:14 +0000 (+0200) Subject: MatrixFree: Use constexpr when selecting evaluator factory X-Git-Tag: relicensing~539^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3f90063edff8eae69d466307e72823482429e0b;p=dealii.git MatrixFree: Use constexpr when selecting evaluator factory --- 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,