A flux‐splitting solver for shallow water equations with source terms