Added function refine_forward_step to refine grid around step corner.