]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use Utilities::fixed_power in one place. 14773/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 9 Feb 2023 12:42:07 +0000 (07:42 -0500)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2023 12:42:07 +0000 (07:42 -0500)
Co-authored-by: Wolfgang Bangerth <bangerth@colostate.edu>
include/deal.II/matrix_free/cuda_matrix_free.templates.h

index b08f6673ba0e31a0984907dafd3deebf248b0a31..36758a0eeac9bc3b77bd444f863dc024d22dafb5 100644 (file)
@@ -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<unsigned int>(std::pow(n_q_points_1d, dim));
+    q_points_per_cell = Utilities::fixed_power<dim>(n_q_points_1d);
 
     const ::dealii::internal::MatrixFreeFunctions::ShapeInfo<Number> shape_info(
       quad, fe);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.