Add the create_magnetic_configuration
function
#640
Merged
create_magnetic_configuration
function
#640