diff --git a/include/ddc/kernels/fft.hpp b/include/ddc/kernels/fft.hpp index 8d3c4febc..73f58b317 100644 --- a/include/ddc/kernels/fft.hpp +++ b/include/ddc/kernels/fft.hpp @@ -179,14 +179,13 @@ void rescale( template Real forward_full_norm_coef(DiscreteDomain const& ddom) noexcept { - return rlength(ddom) / Kokkos::sqrt(2 * Kokkos::numbers::pi) - / (ddc::get(ddom.extents()) - 1); + return rlength(ddom) / Kokkos::sqrt(2 * Kokkos::numbers::pi) / (ddom.extents() - 1).value(); } template Real backward_full_norm_coef(DiscreteDomain const& ddom) noexcept { - return 1 / (forward_full_norm_coef(ddom) * ddc::get(ddom.extents())); + return 1 / (forward_full_norm_coef(ddom) * ddom.extents().value()); } /// @brief Core internal function to perform the FFT.