Skip to content

Commit

Permalink
Reuse forward_full_norm_coef
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Oct 13, 2024
1 parent 9babe5b commit 3782014
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/ddc/kernels/fft.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ Real forward_full_norm_coef(DiscreteDomain<DDim> const& ddom) noexcept
template <class DDim>
Real backward_full_norm_coef(DiscreteDomain<DDim> const& ddom) noexcept
{
return (Kokkos::sqrt(2 * Kokkos::numbers::pi) * (ddc::get<DDim>(ddom.extents()) - 1)
/ rlength(ddom))
/ ddc::get<DDim>(ddom.extents());
return 1 / (forward_full_norm_coef(ddom) * ddc::get<DDim>(ddom.extents()));
}

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

0 comments on commit 3782014

Please sign in to comment.