From ecb1a1a57d509019d70d518f44fbd6719f46e9aa Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 27 Sep 2022 22:02:40 -0500 Subject: [PATCH] CGAL: use dealii's constexpr Utilities::pow instead of std::pow Fixes #14319 --- source/cgal/intersections.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source/cgal/intersections.cc b/source/cgal/intersections.cc index a9d189084c..0ad7918301 100644 --- a/source/cgal/intersections.cc +++ b/source/cgal/intersections.cc @@ -22,6 +22,7 @@ #ifdef DEAL_II_WITH_CGAL # include +# include # include @@ -716,19 +717,19 @@ namespace CGALWrappers ExcNotImplemented()); const auto vertices0 = - CGALWrappers::get_vertices_in_cgal_order( + CGALWrappers::get_vertices_in_cgal_order( cell0, mapping0); const auto vertices1 = - CGALWrappers::get_vertices_in_cgal_order( + CGALWrappers::get_vertices_in_cgal_order( cell1, mapping1); return compute_intersection_of_cells(vertices0, - vertices1, - tol); + Utilities::pow(2, dim0), + Utilities::pow(2, dim1)>(vertices0, + vertices1, + tol); } # include "intersections.inst" -- 2.39.5