Computation of gravity currents in estuaries