Bug in ShallowWaterModel
treatment of bathymetric contribution to pressure
#3051
Labels
bug 🐞
Even a perfect program still has bugs
numerics 🧮
So things don't blow up and boil the lobsters alive
These lines multiply
h
(a field at ccc) with objects atfcc
andcfc
respectivelyOceananigans.jl/src/Models/ShallowWaterModels/solution_and_tracer_tendencies.jl
Lines 16 to 17 in bcc34f0
This doesn't look correct, but if there is some logic that makes it correct, it should be documented with a comment at least. I think if the bathymetric height is defined at cell centers, then the bathymetric height at a cell interface might need to be defined as the maximum of the height of the adjacent cells.
The text was updated successfully, but these errors were encountered: