In addition, it is only necessary to reflag the cells that lie along the free surface and some of their neighbor cells in each computational step.