The effect of shocks on second order sensitivities for the quasi-one-dimensional Euler equations