Evolution of a Riemann wave in dispersive hydrodynamics