  Context. Coronal mass ejections (CMEs) are the main driver of solar wind
disturbances near Earth. When directed towards us, the internal magnetic field
of the CME can interact with the Earth`s magnetic field and cause geomagnetic
storms. In order to better predict and avoid damage coming from such events,
the optimized heliospheric model Icarus has been implemented. Aims. The impact
of a CME at Earth is greatly affected by its internal magnetic field structure.
The aim of this work is to enable modelling the evolution of the magnetic field
configuration of the CME throughout its propagation in Icarus. The focus of the
study is on the global magnetic structure of the CME and its evolution and
interaction with the solar wind. Methods. The magnetized CME model that is
implemented in Icarus is the Linear Force-Free Spheromak and is imported from
EUHFORIA. Advanced techniques, such as grid stretching and AMR are applied.
Different AMR levels are applied in order to obtain high resolution locally,
where needed. The results of all the simulations are compared in detail and the
wall-clock times of the simulations are provided. Results. The results from the
performed simulations are analyzed. The arrival time is better approximated by
the EUHFORIA simulation, with the CME shock arriving 1.6 and 1.09 hours later
than in the AMR level 4 and 5 simulations, respectively. The profile features
and variable strengths are best modelled by Icarus simulations with AMR level 4
and 5. Conclusions. The arrival time is closer to the observed time in the
EUHFORIA simulation, but the profiles of the different variables show more
features and details in the Icarus simulations. Considering the small
difference in the modelled results, and the large difference in computational
resources, the AMR level 4 simulation is considered to have performed the best.
