Now saves OCDFT energy to globals (contd..).