Simulation of groundwater flow based on adaptive mesh refinement