The Riemann problem in computational science