Computations on the interaction of an interplanetary shock with the earth's magnetosphere