Skip to content

Commit

Permalink
Resolve "Fix clang compilation"
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Sep 27, 2023
1 parent 39e0bc8 commit 4c056f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/quadrature/trapezoid_quadrature.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @return The quadrature coefficients for the trapezoid method defined on the provided domain.
*/
template <class IDim>
ddc::Chunk<double, ddc::DiscreteDomain<IDim>> trapezoid_quadrature_coefficients(
ddc::Chunk<double, ddc::DiscreteDomain<IDim>> trapezoid_quadrature_coefficients_1d(
ddc::DiscreteDomain<IDim> const& domain)
{
ddc::Chunk<double, ddc::DiscreteDomain<IDim>> coefficients(domain);
Expand Down Expand Up @@ -54,5 +54,8 @@ template <class... ODims>
ddc::Chunk<double, ddc::DiscreteDomain<ODims...>> trapezoid_quadrature_coefficients(
ddc::DiscreteDomain<ODims...> const& domain)
{
return quadrature_coeffs_nd(domain, (trapezoid_quadrature_coefficients<ODims>)...);
return quadrature_coeffs_nd(
domain,
(std::function<ddc::Chunk<double, ddc::DiscreteDomain<ODims>>(
ddc::DiscreteDomain<ODims>)>(trapezoid_quadrature_coefficients_1d<ODims>))...);
}

0 comments on commit 4c056f3

Please sign in to comment.