Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify fft full normalization #663

Merged
merged 8 commits into from
Oct 15, 2024
Merged

Conversation

tpadioleau
Copy link
Member

@tpadioleau tpadioleau commented Oct 13, 2024

The "full" normalization can be simplified by defining a 1d normalization factor that would also avoid duplication

  • fix double implicit usage through Kokkos::numbers::pi
  • introduce two functions to help reading the normalization factors and the link between the forward and backward transformations

@tpadioleau tpadioleau self-assigned this Oct 13, 2024
@tpadioleau tpadioleau force-pushed the simplify-fft-full-normalization branch from 5d54142 to ac3b30a Compare October 13, 2024 11:12
yasahi-hpc
yasahi-hpc previously approved these changes Oct 15, 2024
Copy link
Member

@yasahi-hpc yasahi-hpc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Could you please comment about the consistency between Real and real_type_t<Tout>

include/ddc/kernels/fft.hpp Show resolved Hide resolved
@tpadioleau
Copy link
Member Author

thanks @yasahi-hpc

@tpadioleau tpadioleau merged commit fc0aa21 into main Oct 15, 2024
56 checks passed
@tpadioleau tpadioleau deleted the simplify-fft-full-normalization branch October 15, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants