2-D inviscid flow and adjoint solver