A continuous adjoint formulation for hypersonic flows in thermochemical nonequilibrium