@@ -108,7 +108,7 @@ void RDMFT<TK, TR>::init(Gint_Gamma& GG_in, Gint_k& GK_in, Parallel_Orbitals& Pa
108108 std::cout << " \n\n\n ******\n XC-functional in rdmft: " << XC_func_rdmft << " \n ******\n\n\n " << std::endl;
109109 std::cout << " \n ******\n GlobalC::exx_info.info_global.cal_exx: " << GlobalC::exx_info.info_global .cal_exx << " \n ******\n " << std::endl;
110110 std::cout << " \n ******\n PARAM.inp.ab_initio_type: " << PARAM.inp .ab_initio_type << " \n ******\n " << std::endl;
111- std::cout << " \n ******\n GlobalV::NBANDS: " << GlobalV::NBANDS << " \n ******\n " << std::endl;
111+ // std::cout << "\n******\nGlobalV::NBANDS: " << GlobalV::NBANDS << "\n******\n" << std::endl;
112112 std::cout << " \n ******\n PARAM.inp.nbands: " << PARAM.inp .nbands << " \n ******\n " << std::endl;
113113 // XC_func_rdmft = "hf";
114114 // std::cout << "\n\n\n******\nXC-functional in rdmft: " << XC_func_rdmft << "\n******\n\n\n" << std::endl;
@@ -340,7 +340,7 @@ void RDMFT<TK, TR>::update_charge()
340340 else
341341 {
342342 // calculate DMK and DMR
343- elecstate::DensityMatrix<TK, double > DM (kv, ParaV, nspin);
343+ elecstate::DensityMatrix<TK, double > DM (ParaV, nspin, kv-> kvec_d , nk_total );
344344 elecstate::cal_dm_psi (ParaV, wg, wfc, DM);
345345 DM.init_DMR (&GlobalC::GridD, &GlobalC::ucell);
346346 DM.cal_DMR ();
@@ -593,7 +593,7 @@ void RDMFT<TK, TR>::cal_V_XC()
593593
594594 DM_XC_pass = DM_XC;
595595
596- elecstate::DensityMatrix<TK, double > DM_test (kv, ParaV, nspin);
596+ elecstate::DensityMatrix<TK, double > DM_test (ParaV, nspin, kv-> kvec_d , nk_total );
597597 elecstate::cal_dm_psi (ParaV, wg, wfc, DM_test);
598598 DM_test.init_DMR (&GlobalC::GridD, &GlobalC::ucell);
599599 DM_test.cal_DMR ();
0 commit comments