Inviscid drag calculations for transonic flows