Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gustavo Marques noticed that with `LEITH_CK = 0.0` we were still getting negative Laplacian viscosity coefficients southwest of land. There's an if statement designed to limit the magnitude of the backscatter so that it doesn't overcome the biharmonic damping. When c_K = 0.0 *and* when smoothed vorticity at the q point is zero, this if statement ironically causes the backscatter coefficient to equal its largest possible value. Smoothed vorticity at the q point is always zero on land, so cells whose northwest corner are on land always have the max backscatter coefficient (which then gets smoothed into the interior). This commit zeros out the backscatter in those cells.
- Loading branch information