An MHD code for the study of magnetic structures in the solar wind. (26th March 2015)