To compute the wall distanceΒΆ