The application of adaptive mesh techniques to numerical simulations of gravity current flows