Fix bugs in 1D shallow water solver.