Weakly Nonhydrostatic Effects in Compositionally‐Driven Gravity Flows