Bad NO_SHEAR_MODES ns2d.strat
There are 2 parameters NO_SHEAR_MODES
:
params.NO_SHEAR_MODES
params.oper.NO_SHEAR_MODES
The second one should be fine but the first one seems to be buggy.
The block is useless and key_fft[0, :] = 0
assumes too much about how the arrays in Fourier space are organized!