Vorticity and magnetic shielding in a type-II superconductor