The parallel Fourier pseudospectral method