Magnetic domain wall confined in a nanoconstriction