@@ -185,6 +185,7 @@ void RDMFT<TK, TR>::init(Gint_Gamma& GG_in, Gint_k& GK_in, Parallel_Orbitals& Pa
185185 H_wfc_XC.zero_out ();
186186 H_wfc_exx_XC.zero_out ();
187187 H_wfc_dft_XC.zero_out ();
188+
188189 HR_TV->set_zero (); // HR->set_zero() might be delete here, test on Gamma_only in the furure
189190 HR_hartree->set_zero ();
190191 // HR_XC->set_zero();
@@ -693,7 +694,7 @@ void RDMFT<TK, TR>::cal_V_XC()
693694 &Vxc_fromRI_c->Hexxs
694695 );
695696 }
696- // V_exx_XC->contributeHR();
697+ V_exx_XC->contributeHR ();
697698 }
698699}
699700
@@ -889,7 +890,9 @@ void RDMFT<TK, TR>::cal_Energy(const int cal_type)
889890 std::cout << std::fixed << std::setprecision (10 ) << " ******\n E(TV + Hartree + XC) by RDMFT: " << E_RDMFT[3 ] << " \n\n ETV_RDMFT: "
890891 << E_RDMFT[0 ] << " \n Ehartree_RDMFT: " << E_RDMFT[1 ] << " \n Exc_RDMFT: " << E_RDMFT[2 ] << " \n E_Ewald: " << E_Ewald
891892 << " \n E_entropy(-TS): " << E_entropy << " \n E_descf: " << E_descf << " \n\n Etotal_RDMFT: " << Etotal << " \n Exc_ksdft: " << E_xc_KS
892- << " \n E_exx_ksdft: " << E_exx_KS <<" \n ******\n\n " << std::endl;
893+ << " \n\n E_exx_ksdft: " << E_exx_KS <<" \n ******\n\n " << std::endl;
894+
895+ std::cout << " \n etxc: " << etxc << " \n vtxc: " << vtxc << " \n " ;
893896
894897 std::cout << " \n E_deband_KS: " << E_deband_KS << " \n E_deband_harris_KS: " << E_deband_harris_KS << " \n\n " << std::endl;
895898 }
@@ -900,7 +903,7 @@ void RDMFT<TK, TR>::cal_Energy(const int cal_type)
900903 std::cout << std::fixed << std::setprecision (10 ) << " ******\n E(TV + Hartree + XC) by RDMFT: " << E_RDMFT[3 ] << " \n\n ETV_RDMFT: "
901904 << E_RDMFT[0 ] << " \n E_hartree_RDMFT: " << E_RDMFT[1 ] << " \n Exc_" << XC_func_rdmft << " _RDMFT: " << E_RDMFT[2 ] << " \n E_Ewald: " << E_Ewald
902905 << " \n E_entropy(-TS): " << E_entropy << " \n E_descf: " << E_descf << " \n\n Etotal_RDMFT: " << Etotal << " \n Exc_ksdft: " << E_xc_KS
903- << " \n E_exx_ksdft: " << E_exx_KS <<" \n ******\n\n " << std::endl;
906+ << " \n\ n E_exx_ksdft: " << E_exx_KS <<" \n ******\n\n " << std::endl;
904907
905908 std::cout << " \n etxc: " << etxc << " \n vtxc: " << vtxc << " \n " ;
906909
0 commit comments