Integral magnetostatic solution with dual meshes