Conservation of geometric structures for non-homogeneous inviscid incompressible fluids