Initial implementation and testing of periodic/antiperiodic boundary conditions for magnetostatic solvers