Adaptive mesh refinement for numerical computation in X-Y plane.