Recent developments in the numerical simulation of shallow water equations I: boundary conditions