total current for magnetostatics