From 5065e669332bd5926e22c26409a279d62f22a0b5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 16 Nov 2021 10:37:18 -0700 Subject: [PATCH] Work around a (wrong) warning about an unused variable. --- .../deal.II/matrix_free/evaluation_kernels.h | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/deal.II/matrix_free/evaluation_kernels.h b/include/deal.II/matrix_free/evaluation_kernels.h index b358f9b68e..0532e46907 100644 --- a/include/deal.II/matrix_free/evaluation_kernels.h +++ b/include/deal.II/matrix_free/evaluation_kernels.h @@ -152,18 +152,18 @@ namespace internal const internal::MatrixFreeFunctions::UnivariateShapeData *univariate_shape_data) { - const bool request_even_odd = variant == evaluate_evenodd; - - Eval eval(request_even_odd ? univariate_shape_data->shape_values_eo : - univariate_shape_data->shape_values, - request_even_odd ? univariate_shape_data->shape_gradients_eo : - univariate_shape_data->shape_gradients, - request_even_odd ? univariate_shape_data->shape_hessians_eo : - univariate_shape_data->shape_hessians, - univariate_shape_data->fe_degree + 1, - univariate_shape_data->n_q_points_1d); - - return eval; + if (variant == evaluate_evenodd) + return Eval(univariate_shape_data->shape_values_eo, + univariate_shape_data->shape_gradients_eo, + univariate_shape_data->shape_hessians_eo, + univariate_shape_data->fe_degree + 1, + univariate_shape_data->n_q_points_1d); + else + return Eval(univariate_shape_data->shape_values, + univariate_shape_data->shape_gradients, + univariate_shape_data->shape_hessians, + univariate_shape_data->fe_degree + 1, + univariate_shape_data->n_q_points_1d); } }; -- 2.39.5