Numerical techniques to simulate tsunamis are described. Partial differential equations are reduced to a system of ordinary differential equations to which appropriate numerical solvers can be applied. The techniques are illustrated with an example in which tsunami due to an earthquake is simulated.