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

Use FFT for MAC projection cases #152

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

WeiqunZhang
Copy link
Member

For level 0 MAC projection with all periodic boundaries or periodic in the first two dimensions and Neumann in the last dimension, there is now the option of using FFT. To compile with FFT support, use USE_FFT=TRUE for GNU Make and HYDRO_FFT=ON (which will turn on AMReX_FFT) for CMake. At runtime, one needs to specify mac_proj.use_fft = 1. If the conditions for FFT support are not satisfied, a runtime error may occur. So don't set mac_proj.use_fft=1 unless FFT is supported for the problem.

Note that the current implementation is still experimental.

For level 0 MAC projection with all periodic boundaries or periodic in the
first two dimensions and Neumann in the last dimension, there is now the
option of using FFT. To compile with FFT support, use `USE_FFT=TRUE` for GNU
Make and `HYDRO_FFT=ON` (which will turn on AMReX_FFT) for CMake. At
runtime, one needs to specify `mac_proj.use_fft = 1`. If the conditions for
FFT support are not satisfied, a runtime error may occur. So don't set
`mac_proj.use_fft=1` unless FFT is supported for the problem.

Note that the current implementation is still experimental.
@WeiqunZhang WeiqunZhang requested a review from asalmgren October 21, 2024 23:31
@WeiqunZhang WeiqunZhang merged commit ffbf2f8 into AMReX-Fluids:development Oct 22, 2024
14 checks passed
@WeiqunZhang WeiqunZhang deleted the fft branch October 22, 2024 00:12
@marchdf
Copy link
Contributor

marchdf commented Oct 28, 2024

This is neat. Is is much faster?

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.

3 participants