field computation code: current & magnetic dipoles