44#include " source_lcao/module_deltaspin/spin_constrain.h"
55#include " source_pw/module_pwdft/onsite_proj.h"
66#include " source_pw/module_pwdft/vnl_pw.h"
7- #include " source_lcao/module_dftu/dftu .h"
7+ #include " source_pw/module_pwdft/dftu_base .h" // mohan add 2025-11-06
88#include " source_pw/module_pwdft/vsep_pw.h"
99
1010template <typename T, typename Device>
@@ -17,7 +17,7 @@ void pw::setup_pot(const int istep,
1717 const Charge &chr, // charge density
1818 pseudopot_cell_vl &locpp, // local pseudopotentials
1919 pseudopot_cell_vnl &ppcell, // non-local pseudopotentials
20- Plus_U &dftu, // mohan add 2025-11-06
20+ Plus_U_Base &dftu, // mohan add 2025-11-06
2121 VSep* vsep_cell, // U-1/2 method
2222 psi::Psi<T, Device>* kspw_psi, // electronic wave functions
2323 hamilt::HamiltBase* p_hamilt, // hamiltonian
@@ -122,7 +122,7 @@ void pw::setup_pot(const int istep,
122122 if (PARAM .inp .dft_plus_u )
123123 {
124124 const int nlocal_dftu = 0 ;
125- dftu.init (ucell, nullptr ,
125+ dftu.init_base (ucell,
126126 PARAM .globalv .npol ,
127127 PARAM .inp .nspin , PARAM .inp .orbital_corr , PARAM .inp .yukawa_potential , PARAM .inp .yukawa_lambda ,
128128 PARAM .globalv .global_readin_dir ,
@@ -150,7 +150,7 @@ template void pw::setup_pot<std::complex<float>, base_device::DEVICE_CPU>(
150150 const Charge &chr, // charge density
151151 pseudopot_cell_vl &locpp, // local pseudopotentials
152152 pseudopot_cell_vnl &ppcell, // non-local pseudopotentials
153- Plus_U &dftu, // mohan add 2025-11-06
153+ Plus_U_Base &dftu, // mohan add 2025-11-06
154154 VSep* vsep_cell, // U-1/2 method
155155 psi::Psi<std::complex <float >, base_device::DEVICE_CPU >* kspw_psi, // electronic wave functions
156156 hamilt::HamiltBase* p_hamilt, // hamiltonian
@@ -170,7 +170,7 @@ template void pw::setup_pot<std::complex<double>, base_device::DEVICE_CPU>(
170170 const Charge &chr, // charge density
171171 pseudopot_cell_vl &locpp, // local pseudopotentials
172172 pseudopot_cell_vnl &ppcell, // non-local pseudopotentials
173- Plus_U &dftu, // mohan add 2025-11-06
173+ Plus_U_Base &dftu, // mohan add 2025-11-06
174174 VSep* vsep_cell, // U-1/2 method
175175 psi::Psi<std::complex <double >, base_device::DEVICE_CPU >* kspw_psi, // electronic wave functions
176176 hamilt::HamiltBase* p_hamilt, // hamiltonian
@@ -191,7 +191,7 @@ template void pw::setup_pot<std::complex<float>, base_device::DEVICE_GPU>(
191191 const Charge &chr, // charge density
192192 pseudopot_cell_vl &locpp, // local pseudopotentials
193193 pseudopot_cell_vnl &ppcell, // non-local pseudopotentials
194- Plus_U &dftu, // mohan add 2025-11-06
194+ Plus_U_Base &dftu, // mohan add 2025-11-06
195195 VSep* vsep_cell, // U-1/2 method
196196 psi::Psi<std::complex <float >, base_device::DEVICE_GPU >* kspw_psi, // electronic wave functions
197197 hamilt::HamiltBase* p_hamilt, // hamiltonian
@@ -210,7 +210,7 @@ template void pw::setup_pot<std::complex<double>, base_device::DEVICE_GPU>(
210210 const Charge &chr, // charge density
211211 pseudopot_cell_vl &locpp, // local pseudopotentials
212212 pseudopot_cell_vnl &ppcell, // non-local pseudopotentials
213- Plus_U &dftu, // mohan add 2025-11-06
213+ Plus_U_Base &dftu, // mohan add 2025-11-06
214214 VSep* vsep_cell, // U-1/2 method
215215 psi::Psi<std::complex <double >, base_device::DEVICE_GPU >* kspw_psi, // electronic wave functions
216216 hamilt::HamiltBase* p_hamilt, // hamiltonian
0 commit comments