Global simulation of the solar wind-magnetosphere interaction: The importance of its numerical validity