Skip to content

Commit

Permalink
Merge pull request #15940 from kronbichler/constexpr
Browse files Browse the repository at this point in the history
MatrixFree: Use constexpr when selecting evaluator factory
  • Loading branch information
bangerth committed Aug 29, 2023
2 parents 3d3a379 + c3f9006 commit b2819d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/deal.II/matrix_free/fe_evaluation.h
Original file line number Diff line number Diff line change
Expand Up @@ -7848,7 +7848,7 @@ FEEvaluation<dim,
(this->cell_type > internal::MatrixFreeFunctions::affine))
evaluation_flag_actual |= EvaluationFlags::values;

if (fe_degree > -1)
if constexpr (fe_degree > -1)
{
SelectEvaluator<dim, fe_degree, n_q_points_1d, VectorizedArrayType>::
evaluate(n_components, evaluation_flag_actual, values_array, *this);
Expand Down Expand Up @@ -8077,7 +8077,7 @@ FEEvaluation<dim,
}
}

if (fe_degree > -1)
if constexpr (fe_degree > -1)
{
SelectEvaluator<dim, fe_degree, n_q_points_1d, VectorizedArrayType>::
integrate(n_components,
Expand Down Expand Up @@ -8540,7 +8540,7 @@ FEFaceEvaluation<dim,
(this->cell_type > internal::MatrixFreeFunctions::affine))
evaluation_flag_actual |= EvaluationFlags::values;

if (fe_degree > -1)
if constexpr (fe_degree > -1)
internal::FEFaceEvaluationImplEvaluateSelector<dim, VectorizedArrayType>::
template run<fe_degree, n_q_points_1d>(n_components,
evaluation_flag_actual,
Expand Down Expand Up @@ -8646,7 +8646,7 @@ FEFaceEvaluation<dim,
}
}

if (fe_degree > -1)
if constexpr (fe_degree > -1)
internal::FEFaceEvaluationImplIntegrateSelector<dim, VectorizedArrayType>::
template run<fe_degree, n_q_points_1d>(n_components,
integration_flag_actual,
Expand Down Expand Up @@ -8703,7 +8703,7 @@ FEFaceEvaluation<dim,
this->dof_info->index_storage_variants[this->dof_access_index]
[this->cell]))
{
if (fe_degree > -1)
if constexpr (fe_degree > -1)
{
internal::FEFaceEvaluationImplGatherEvaluateSelector<
dim,
Expand Down Expand Up @@ -8820,7 +8820,7 @@ FEFaceEvaluation<dim,
this->dof_info->index_storage_variants[this->dof_access_index]
[this->cell]))
{
if (fe_degree > -1)
if constexpr (fe_degree > -1)
{
internal::FEFaceEvaluationImplIntegrateScatterSelector<
dim,
Expand Down

0 comments on commit b2819d6

Please sign in to comment.