Adding the FFTW library to PeleC #548
-
Hello all, I am trying to add FFTW to PeleC to compute Fourier transforms after every time step by leveraging the I've fleshed out something similar to the I'd need the FFT functionalities inside my local case files next so I can compute the Fourier transform (which is where I find it tough to navigate and hope to get some tips). I've installed FFTW and its currently sitting inside my
I'd like inputs on how I can couple FFTW with PeleC. My guess is making changes to the Any input is greatly appreciated! Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
To couple any other software with pelec, you could add the location of headers and shared libraries in the GNUMakefile. add alternatively, do look at this in amrex tutorials where SWFFT is used - https://github.com/AMReX-Codes/amrex-tutorials/blob/eefdf928d74bf9eb6dfd931ca75e1af3a84f0e11/ExampleCodes/SWFFT/SWFFT_poisson/GNUmakefile#L17 |
Beta Was this translation helpful? Give feedback.
-
Thanks @hsitaram for these ideas. After taking a look at SWFFT, I am wondering if I'd be reinventing the wheel by coding up 2-D FFTs in |
Beta Was this translation helpful? Give feedback.
-
We did this in the past in order to get turbulence spectra, both for Pele combustion and for astrophysics. I'll ping a few people to see if that code is available somewhere and what shape it's in. In the meantime, have a look in PeleAnalysis in the Turbulence_analysis folder and see if this will get you at least partway to where you want to go. |
Beta Was this translation helpful? Give feedback.
To couple any other software with pelec, you could add the location of headers and shared libraries in the GNUMakefile.
add
INCLUDE_LOCATIONS += path-to-headers
LIBRARIES += -Lpath-to-lib -l(fftw-i-think)
LIBRARIES += -Wl,-rpath=path-to-lib
alternatively, do look at this in amrex tutorials where SWFFT is used - https://github.com/AMReX-Codes/amrex-tutorials/blob/eefdf928d74bf9eb6dfd931ca75e1af3a84f0e11/ExampleCodes/SWFFT/SWFFT_poisson/GNUmakefile#L17