advection equation with Fourier method