55#ifndef RDMFT_TOOLS_H
66#define RDMFT_TOOLS_H
77
8+ #include " module_psi/psi.h"
89#include " module_base/matrix.h"
910#include " module_cell/module_neighbor/sltk_grid_driver.h"
1011#include " module_cell/unitcell.h"
1516#include " module_base/scalapack_connector.h"
1617#include " module_basis/module_ao/parallel_2d.h"
1718#include " module_basis/module_ao/parallel_orbitals.h"
18- #include " module_hamilt_pw/hamilt_pwdft/global.h"
1919#include " module_base/parallel_reduce.h"
20+ #include " module_hamilt_pw/hamilt_pwdft/global.h"
2021#include " module_elecstate/module_dm/cal_dm_psi.h"
2122#include " module_elecstate/module_dm/density_matrix.h"
2223
23- #include " module_hamilt_general/operator.h"
2424#include " module_hamilt_lcao/module_hcontainer/hcontainer.h"
25+ #include " module_hamilt_lcao/hamilt_lcaodft/hs_matrix_k.hpp"
2526#include " module_hamilt_lcao/hamilt_lcaodft/operator_lcao/operator_lcao.h"
26- #include " module_hamilt_lcao/hamilt_lcaodft/operator_lcao/op_exx_lcao.h"
27- #include " module_hamilt_lcao/hamilt_lcaodft/operator_lcao/ekinetic_new.h"
28- #include " module_hamilt_lcao/hamilt_lcaodft/operator_lcao/nonlocal_new.h"
29- #include " module_hamilt_lcao/hamilt_lcaodft/operator_lcao/veff_lcao.h"
3027
31- #include " module_hamilt_lcao/hamilt_lcaodft/hs_matrix_k.hpp"
3228
33- // used by Exx&LRI
3429#ifdef __EXX
3530#include " module_ri/RI_2D_Comm.h"
3631#include " module_ri/Exx_LRI.h"
37- #endif
38-
3932// there are some operator reload to print data in different formats
4033#include " module_ri/test_code/test_function.h"
34+ #endif
4135
4236#include < iostream>
4337#include < type_traits>
@@ -240,9 +234,11 @@ void add_psi(const Parallel_Orbitals* ParaV,
240234
241235}
242236
243-
244- // ! occNum_wfcHwfc = occNum*wfcHwfc + occNum_wfcHwfc
245- // ! 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.
237+ /* *
238+ * @brief occNum_wfcHwfc = occNum*wfcHwfc + occNum_wfcHwfc
239+ * @param symbol: When symbol = 0, 1, 2, 3, 4, occNum = occNum, 0.5*occNum, g(occNum), 0.5*g(occNum), d_g(occNum)/d_occNum respectively.
240+ * Default symbol=0.
241+ */
246242void occNum_Mul_wfcHwfc (const ModuleBase::matrix& occ_number,
247243 const ModuleBase::matrix& wfcHwfc,
248244 ModuleBase::matrix& occNum_wfcHwfc,
@@ -251,8 +247,10 @@ void occNum_Mul_wfcHwfc(const ModuleBase::matrix& occ_number,
251247 const double alpha = 1.0 );
252248
253249
254- // ! Default symbol = 0 for the gradient of Etotal with respect to occupancy
255- // ! symbol = 1 for the relevant calculation of Etotal
250+ /* *
251+ * @brief Default symbol = 0 for the gradient of Etotal with respect to occupancy,
252+ * symbol = 1 for the relevant calculation of Etotal
253+ */
256254void add_occNum (const K_Vectors& kv,
257255 const ModuleBase::matrix& occ_number,
258256 const ModuleBase::matrix& wfcHwfc_TV_in,
0 commit comments