The Degasperis–Procesi equation as a non-metric Euler equation