A Discrete Adjoint Formulation for Inviscid Flow Nozzle Optimization. (September 2017)