Enable static magnetic fields in Maxwell code