From: Daniel Arndt Date: Thu, 9 Feb 2023 12:42:07 +0000 (-0500) Subject: Use Utilities::fixed_power in one place. X-Git-Tag: v9.5.0-rc1~569^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14773%2Fhead;p=dealii.git Use Utilities::fixed_power in one place. Co-authored-by: Wolfgang Bangerth --- diff --git a/include/deal.II/matrix_free/cuda_matrix_free.templates.h b/include/deal.II/matrix_free/cuda_matrix_free.templates.h index b08f6673ba..36758a0eea 100644 --- a/include/deal.II/matrix_free/cuda_matrix_free.templates.h +++ b/include/deal.II/matrix_free/cuda_matrix_free.templates.h @@ -936,7 +936,7 @@ namespace CUDAWrappers std::ceil(dim * std::log2(fe_degree + 1.))); dofs_per_cell = fe.n_dofs_per_cell(); - q_points_per_cell = static_cast(std::pow(n_q_points_1d, dim)); + q_points_per_cell = Utilities::fixed_power(n_q_points_1d); const ::dealii::internal::MatrixFreeFunctions::ShapeInfo shape_info( quad, fe);