A self-adaptive formulation for the Euler/Navier—Stokes coupling