https://5dok.org/document/wq2omorz-revisiting-posed-boundary-conditions-shallow-water-equations.html