The small amplitude magnetohydrodynamic Riemann problem