On the group velocity for the shallow water equations with source terms