Exact Riemann solver for moving-mesh methods.