Plasma flow in the Mars magnetosphere