11#include " source_estate/module_charge/chgmixing.h"
22#include " source_estate/update_pot.h"
3- #include " source_lcao/module_dftu/dftu .h"
3+ #include " source_lcao/module_dftu/dftu_lcao .h"
44#include " source_lcao/module_deltaspin/spin_constrain.h"
55
66void module_charge::chgmixing_ks (const int iter, // scf iteration number
@@ -119,7 +119,7 @@ void module_charge::chgmixing_ks(const int iter, // scf iteration number
119119
120120void module_charge::chgmixing_ks_pw (const int iter, // scf iteration number
121121 Charge_Mixing* p_chgmix, // charge mixing class
122- Plus_U & dftu, // mohan add 2025-11-06
122+ Plus_U_Base& dftu,
123123 const Input_para& inp) // input parameters
124124{
125125 ModuleBase::TITLE (" module_charge" , " chgmixing_ks_pw" );
@@ -167,7 +167,7 @@ void module_charge::chgmixing_ks_pw(const int iter, // scf iteration number
167167 std::cout << " U-Ramping! Current U = " ;
168168 for (int i = 0 ; i < dftu.get_num_u_types (); i++)
169169 {
170- std::cout << dftu.get_hubbard_u (i) * ModuleBase::Ry_to_eV << " " ;
170+ std::cout << dftu.get_u_current (i) * ModuleBase::Ry_to_eV << " " ;
171171 }
172172 std::cout << " eV " << std::endl;
173173 }
@@ -180,7 +180,7 @@ void module_charge::chgmixing_ks_pw(const int iter, // scf iteration number
180180
181181void module_charge::chgmixing_ks_lcao (const int iter, // scf iteration number
182182 Charge_Mixing* p_chgmix, // charge mixing class
183- Plus_U & dftu, // mohan add 2025-11-06
183+ Plus_U_Base& dftu,
184184 const int nnr, // dimension of density matrix
185185 const Input_para& inp) // input parameters
186186{
@@ -202,7 +202,7 @@ void module_charge::chgmixing_ks_lcao(const int iter, // scf iteration number
202202 std::cout << " U-Ramping! Current U = " ;
203203 for (int i = 0 ; i < dftu.get_num_u_types (); i++)
204204 {
205- std::cout << dftu.get_hubbard_u (i) * ModuleBase::Ry_to_eV << " " ;
205+ std::cout << dftu.get_u_current (i) * ModuleBase::Ry_to_eV << " " ;
206206 }
207207 std::cout << " eV " << std::endl;
208208 }
@@ -221,7 +221,7 @@ void module_charge::chgmixing_ks_lcao(const int iter, // scf iteration number
221221 std::cout << " U-Ramping! Current U = " ;
222222 for (int i = 0 ; i < dftu.get_num_u_types (); i++)
223223 {
224- std::cout << dftu.get_hubbard_u (i) * ModuleBase::Ry_to_eV << " " ;
224+ std::cout << dftu.get_u_current (i) * ModuleBase::Ry_to_eV << " " ;
225225 }
226226 std::cout << " eV " << std::endl;
227227 }
0 commit comments