Skip to content

Commit

Permalink
Use value instead of get
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Oct 13, 2024
1 parent c96ad73 commit 5d54142
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/ddc/kernels/fft.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,13 @@ void rescale(
template <class DDim>
Real forward_full_norm_coef(DiscreteDomain<DDim> const& ddom) noexcept
{
return rlength(ddom) / Kokkos::sqrt(2 * Kokkos::numbers::pi)
/ (ddc::get<DDim>(ddom.extents()) - 1);
return rlength(ddom) / Kokkos::sqrt(2 * Kokkos::numbers::pi) / (ddom.extents() - 1).value();
}

template <class DDim>
Real backward_full_norm_coef(DiscreteDomain<DDim> const& ddom) noexcept
{
return 1 / (forward_full_norm_coef(ddom) * ddc::get<DDim>(ddom.extents()));
return 1 / (forward_full_norm_coef(ddom) * ddom.extents().value());
}

/// @brief Core internal function to perform the FFT.
Expand Down

0 comments on commit 5d54142

Please sign in to comment.