Convection in a Martian magnetosphere