jipolanco / PencilFFTs.jl

Fast Fourier transforms of MPI-distributed Julia arrays
https://jipolanco.github.io/PencilFFTs.jl/dev/
MIT License
77 stars 7 forks source link

SlabFFT #57

Closed AdwardAllan closed 1 year ago

AdwardAllan commented 1 year ago

hello, How to use slab decomposition for 3D FFT.

jipolanco commented 1 year ago

That's described in the docs, see here for example.

Basically, if you're following the tutorial, you just need to change

pen = Pencil(dims, comm)  # defaults to 2D decomposition in 3D

to

decomp_dims = (3,)  # decompose 3rd dimension only (for example)
pen = Pencil(dims, decomp_dims, comm)