Cubic spline collocation method for the shallow water equations on the sphere