A study of numerical errors in the integration of barotropic flow on a spherical grid