Added routine to actually accomplish magnetic field swapping.

Also moved hnums print out of loop, each set was being printed nproc times by accident.