Fixed a bug in the outer_wall_distance function for the spherical and
cylindrical grids.