Embedding particle-in-cell simulations in global magnetohydrodynamic simulations of the magnetosphere. (February 2019)