add boundary condition for magnetic potential
debbug
Merge branch 'master' into openmp