The dynamics of tsunamis