mpiFFT4py
mpiFFT4py copied to clipboard
demo/transforms_realdata.py fails out of the box
The error is typically:
fft = PFFT(MPI.COMM_WORLD, N, collapse=False, slab=2)
File "/Users/aponte/.miniconda3/envs/shenfun/lib/python3.6/site-packages/mpi4py_fft/mpifft.py", line 106, in __init__
assert axes[-1] != axis
slab=1
seems to fix the issue.
Where can I find a description of what options corresponds to?
thanks
Hi Aurélien
The "error" you're mentioning is in mpi4py-fft, not mpiFFT4py
. The mistake is understandable, considering the two names:-)
The PFFT
class has a keyword attribute slab
, but it is only boolean, True or False. To use slab decomposition or not. Default is pencil, so then slab=False
.
ok, thanks !