The sensitivity of tokamak magne- tohydrodynamics stability on the edge equilibrium