@@ -221,8 +221,16 @@ void occNum_MulPsi(const Parallel_Orbitals* ParaV, const ModuleBase::matrix& occ
221221
222222// add psi with eta and g(eta)
223223template <typename TK>
224- void add_psi (const Parallel_Orbitals* ParaV, const K_Vectors* kv, const ModuleBase::matrix& occ_number, psi::Psi<TK>& psi_TV, psi::Psi<TK>& psi_hartree,
225- psi::Psi<TK>& psi_dft_XC, psi::Psi<TK>& psi_exx_XC, psi::Psi<TK>& occNum_Hpsi, const std::string XC_func_rdmft = " hf" , const double alpha = 1.0 )
224+ void add_psi (const Parallel_Orbitals* ParaV,
225+ const K_Vectors* kv,
226+ const ModuleBase::matrix& occ_number,
227+ psi::Psi<TK>& psi_TV,
228+ psi::Psi<TK>& psi_hartree,
229+ psi::Psi<TK>& psi_dft_XC,
230+ psi::Psi<TK>& psi_exx_XC,
231+ psi::Psi<TK>& occNum_Hpsi,
232+ const std::string XC_func_rdmft = " hf" ,
233+ const double alpha = 1.0 )
226234{
227235 const int nk = psi_TV.get_nk ();
228236 const int nbn_local = psi_TV.get_nbands ();
@@ -255,21 +263,38 @@ void add_psi(const Parallel_Orbitals* ParaV, const K_Vectors* kv, const ModuleBa
255263
256264// occNum_wfcHwfc = occNum*wfcHwfc + occNum_wfcHwfc
257265// When symbol = 0, 1, 2, 3, 4, occNum = occNum, 0.5*occNum, g(occNum), 0.5*g(occNum), d_g(occNum)/d_occNum respectively. Default symbol=0.
258- void occNum_Mul_wfcHwfc (const ModuleBase::matrix& occ_number, const ModuleBase::matrix& wfcHwfc, ModuleBase::matrix& occNum_wfcHwfc,
259- int symbol = 0 , const std::string XC_func_rdmft = " hf" , const double alpha = 1.0 );
266+ void occNum_Mul_wfcHwfc (const ModuleBase::matrix& occ_number,
267+ const ModuleBase::matrix& wfcHwfc,
268+ ModuleBase::matrix& occNum_wfcHwfc,
269+ int symbol = 0 ,
270+ const std::string XC_func_rdmft = " hf" ,
271+ const double alpha = 1.0 );
260272
261273
262274// Default symbol = 0 for the gradient of Etotal with respect to occupancy
263275// symbol = 1 for the relevant calculation of Etotal
264- void add_occNum (const K_Vectors& kv, const ModuleBase::matrix& occ_number, const ModuleBase::matrix& wfcHwfc_TV_in, const ModuleBase::matrix& wfcHwfc_hartree_in,
265- const ModuleBase::matrix& wfcHwfc_dft_XC_in, const ModuleBase::matrix& wfcHwfc_exx_XC_in, ModuleBase::matrix& occNum_wfcHwfc, const std::string XC_func_rdmft = " hf" , const double alpha = 1.0 );
276+ void add_occNum (const K_Vectors& kv,
277+ const ModuleBase::matrix& occ_number,
278+ const ModuleBase::matrix& wfcHwfc_TV_in,
279+ const ModuleBase::matrix& wfcHwfc_hartree_in,
280+ const ModuleBase::matrix& wfcHwfc_dft_XC_in,
281+ const ModuleBase::matrix& wfcHwfc_exx_XC_in,
282+ ModuleBase::matrix& occNum_wfcHwfc,
283+ const std::string XC_func_rdmft = " hf" ,
284+ const double alpha = 1.0 );
266285
267286
268287// // do wk*g(occNum)*wfcHwfc and add for TV, hartree, XC. This function just use once, so it can be replace and delete
269288// void add_wfcHwfc(const std::vector<double>& wk_in, const ModuleBase::matrix& occ_number, const ModuleBase::matrix& wfcHwfc_TV_in, const ModuleBase::matrix& wfcHwfc_hartree_in,
270289// const ModuleBase::matrix& wfcHwfc_XC_in, ModuleBase::matrix& occNum_wfcHwfc, const std::string XC_func_rdmft, const double alpha);
271- void add_wfcHwfc (const ModuleBase::matrix& wg, const ModuleBase::matrix& wk_fun_occNum, const ModuleBase::matrix& wfcHwfc_TV_in, const ModuleBase::matrix& wfcHwfc_hartree_in,
272- const ModuleBase::matrix& wfcHwfc_XC_in, ModuleBase::matrix& occNum_wfcHwfc, const std::string XC_func_rdmft, const double alpha);
290+ void add_wfcHwfc (const ModuleBase::matrix& wg,
291+ const ModuleBase::matrix& wk_fun_occNum,
292+ const ModuleBase::matrix& wfcHwfc_TV_in,
293+ const ModuleBase::matrix& wfcHwfc_hartree_in,
294+ const ModuleBase::matrix& wfcHwfc_XC_in,
295+ ModuleBase::matrix& occNum_wfcHwfc,
296+ const std::string XC_func_rdmft,
297+ const double alpha);
273298
274299
275300// give certain occNum_wfcHwfc, get the corresponding energy
0 commit comments