mpiFFT4py icon indicating copy to clipboard operation
mpiFFT4py copied to clipboard

demo/transforms_realdata.py fails out of the box

Open apatlpo opened this issue 7 years ago • 2 comments

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

apatlpo avatar Feb 02 '18 13:02 apatlpo

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.

mikaem avatar Feb 02 '18 13:02 mikaem

ok, thanks !

apatlpo avatar Feb 02 '18 16:02 apatlpo