Smelting of copper ore to ingots