From: Peter Munch Date: Wed, 2 Nov 2022 19:26:52 +0000 (+0100) Subject: FEEvaluation: precompile for n_q_points==2*fe_degree X-Git-Tag: v9.5.0-rc1~729^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0af414a376217583c08745dafbb19cff79d10a17;p=dealii.git FEEvaluation: precompile for n_q_points==2*fe_degree --- diff --git a/include/deal.II/matrix_free/evaluation_template_factory_internal.h b/include/deal.II/matrix_free/evaluation_template_factory_internal.h index 94f66caead..1afea5917d 100644 --- a/include/deal.II/matrix_free/evaluation_template_factory_internal.h +++ b/include/deal.II/matrix_free/evaluation_template_factory_internal.h @@ -45,6 +45,8 @@ namespace internal else if (n_q_points_1d == (3 * degree) / 2 + 1) return EvaluatorType::template run( args...); + else if ((n_q_points_1d == (2 * degree)) && (degree <= 4)) + return EvaluatorType::template run(args...); else // slow path return EvaluatorType::template run<-1, 0>(args...); diff --git a/tests/matrix_free/fe_evaluation_print_01.output b/tests/matrix_free/fe_evaluation_print_01.output index 742ac8d833..b62b26a189 100644 --- a/tests/matrix_free/fe_evaluation_print_01.output +++ b/tests/matrix_free/fe_evaluation_print_01.output @@ -1,8 +1,8 @@ DEAL::1 1 1 DEAL:: 1 1 1 -DEAL:: 1 1 1 -DEAL:: 1 1 1 1 +DEAL:: 1 1 1 1 +DEAL:: 1 1 1 1 1 DEAL:: 1 1 1 1 DEAL:: 1 1 1 1 DEAL:: @@ -25,8 +25,8 @@ DEAL:: DEAL:: DEAL::1 1 1 DEAL:: 1 1 1 -DEAL:: 1 1 1 -DEAL:: 1 1 1 1 +DEAL:: 1 1 1 1 +DEAL:: 1 1 1 1 1 DEAL:: 1 1 1 1 DEAL:: 1 1 1 1 DEAL::