Describe distance integral and adaptive mesh refinement