Evaluation of Galerkin and Petrov–Galerkin model reduction for finite element approximations of the shallow water equations