Simulation of dam-break flow with grid adaptation