Open
Description
At some point we intend to support simulations with multiple Mesh
objects. We might then have different grids with different nz
. At the moment rfft
, irfft
, DST
and DST_rev
are functions which use static variables to initialise buffers and FFTW plans
BOUT-dev/src/invert/fft_fftw.cxx
Lines 84 to 88 in 17706e1
If variables with different
n
are passed, this will be very inefficient as the FFTW plan will be re-created each time n
changes, which is expensive.
At some point we should probably make these methods of some sort of class that can cache plans for different n
.