|
1 | 1 | #include "esolver_ks_pw.h" |
2 | 2 |
|
3 | | -#include "source_cell/cal_ux.h" |
4 | 3 | #include "source_estate/elecstate_pw.h" |
5 | 4 | #include "source_estate/module_charge/symmetry_rho.h" |
6 | | -#include "source_hamilt/module_xc/xc_functional.h" // use XC_Functional |
7 | 5 | #include "source_hsolver/diago_iter_assist.h" |
8 | 6 | #include "source_hsolver/diago_params.h" |
9 | 7 | #include "source_hsolver/hsolver_pw.h" |
10 | | -#include "source_hsolver/kernels/hegvd_op.h" |
11 | 8 | #include "source_io/module_parameter/parameter.h" |
12 | | -#include "source_lcao/module_deltaspin/spin_constrain.h" |
13 | | -#include "source_lcao/module_dftu/dftu.h" |
14 | 9 | #include "source_pw/module_pwdft/forces.h" |
15 | 10 | #include "source_pw/module_pwdft/hamilt_pw.h" |
16 | | -#include "source_pw/module_pwdft/onsite_proj.h" |
17 | 11 | #include "source_pw/module_pwdft/stress_pw.h" |
18 | | -#include "source_pw/module_pwdft/vsep_pw.h" |
19 | 12 |
|
20 | 13 | #ifdef __DSP |
21 | 14 | #include "source_base/kernels/dsp/dsp_connector.h" |
22 | 15 | #endif |
23 | 16 |
|
24 | 17 | #include "source_estate/module_charge/chgmixing.h" // use charge mixing, mohan add 20251006 |
25 | 18 | #include "source_estate/setup_estate_pw.h" // mohan add 20251005 |
26 | | -#include "source_estate/update_pot.h" // mohan add 20251016 |
27 | 19 | #include "source_hamilt/module_xc/exx_info.h" // use GlobalC::exx_info |
28 | 20 | #include "source_io/module_ctrl/ctrl_output_pw.h" // mohan add 20250927 |
29 | 21 | #include "source_pw/module_pwdft/deltaspin_pw.h" // mohan add 20250309 |
30 | | -#include "source_pw/module_pwdft/dftu_pw.h" // mohan add 20250309 |
31 | 22 | #include "source_pw/module_pwdft/setup_pot.h" // mohan add 20250929 |
32 | 23 | #include "source_pw/module_pwdft/update_cell_pw.h" // mohan add 20250309 |
| 24 | +#include "source_pw/module_pwdft/setup_dftu_pw.h" // mohan add 20250309 |
33 | 25 |
|
34 | 26 | namespace ModuleESolver |
35 | 27 | { |
@@ -150,7 +142,7 @@ void ESolver_KS_PW<T, Device>::before_scf(UnitCell& ucell, const int istep) |
150 | 142 |
|
151 | 143 | if (ucell.cell_parameter_updated) |
152 | 144 | { |
153 | | - this->stp.p_psi_init->prepare_init(PARAM.inp.pw_seed); |
| 145 | + this->stp.p_psi_init->prepare_init(PARAM.inp.pw_seed, istep); |
154 | 146 | } |
155 | 147 |
|
156 | 148 | //! Init Hamiltonian (cell changed) |
|
0 commit comments