From: Wolfgang Bangerth Date: Tue, 16 Nov 2021 17:37:18 +0000 (-0700) Subject: Work around a (wrong) warning about an unused variable. X-Git-Tag: v9.4.0-rc1~823^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5065e669332bd5926e22c26409a279d62f22a0b5;p=dealii.git Work around a (wrong) warning about an unused variable. --- 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); } };