Skip to content

Commit 0f4fb6d

Browse files
committed
change ucell in pwdft/VNL_in_pw.cpp
1 parent 846b1d1 commit 0f4fb6d

File tree

6 files changed

+82
-66
lines changed

6 files changed

+82
-66
lines changed

source/module_elecstate/elecstate_pw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void ElecStatePW<T, Device>::add_usrho(const psi::Psi<T, Device>& psi)
263263
// get |beta>
264264
if (this->ppcell->nkb > 0)
265265
{
266-
this->ppcell->getvnl(this->ctx, ik, this->vkb);
266+
this->ppcell->getvnl(this->ctx, *ucell,ik, this->vkb);
267267
}
268268

269269
// becp = <beta|psi>

source/module_elecstate/test/elecstate_pw_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,14 @@ std::complex<double>* pseudopot_cell_vnl::get_vkb_data<double>() const
115115
}
116116
template <>
117117
void pseudopot_cell_vnl::getvnl<float, base_device::DEVICE_CPU>(base_device::DEVICE_CPU*,
118+
const UnitCell&,
118119
int const&,
119120
std::complex<float>*) const
120121
{
121122
}
122123
template <>
123124
void pseudopot_cell_vnl::getvnl<double, base_device::DEVICE_CPU>(base_device::DEVICE_CPU*,
125+
const UnitCell&,
124126
int const&,
125127
std::complex<double>*) const
126128
{

source/module_esolver/esolver_ks_pw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void ESolver_KS_PW<T, Device>::before_all_runners(UnitCell& ucell, const Input_p
202202
}
203203

204204
//! init pseudopotential
205-
this->ppcell.init(ucell.ntype, &this->sf, this->pw_wfc);
205+
this->ppcell.init(ucell.ntype, ucell,&this->sf, this->pw_wfc);
206206

207207
//! initalize local pseudopotential
208208
this->ppcell.init_vloc(ucell,this->pw_rhod);

0 commit comments

Comments
 (0)