A shallow-flow model for the propagation of tsunamis over mobile boundaries