2D spectral Galerkin code written in CUDA C