On the simulation of the waves produced by dam break and landslidefalls