Influence of intrinsic magnetic field on the distribution of O+ in Martian magnetosphere