A MHD invariant and the confinement regimes in a tokamak. (29th July 2016)