The numerical integration of the nonlinear shallow-water equations with sloping boundaries