Open boundary conditions for barotropic waves