Skip to content

Commit 2b9f11c

Browse files
committed
repalce wf.npwx
1 parent e0202e0 commit 2b9f11c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/module_esolver/esolver_sdft_pw.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ void ESolver_SDFT_PW<T, Device>::before_all_runners(const Input_para& inp, UnitC
7878
// 4) allocate spaces for \sqrt(f(H))|chi> and |\tilde{chi}>
7979
size_t size = stowf.chi0->size();
8080
this->stowf.shchi
81-
= new psi::Psi<T, Device>(this->kv.get_nks(), this->stowf.nchip_max, this->wf.npwx, this->kv.ngk.data());
81+
= new psi::Psi<T, Device>(this->kv.get_nks(), this->stowf.nchip_max, this->pw_wfc->npwk_max, this->kv.ngk.data());
8282
ModuleBase::Memory::record("SDFT::shchi", size * sizeof(T));
8383

8484
if (PARAM.inp.nbands > 0)
8585
{
8686
this->stowf.chiortho
87-
= new psi::Psi<T, Device>(this->kv.get_nks(), this->stowf.nchip_max, this->wf.npwx, this->kv.ngk.data());
87+
= new psi::Psi<T, Device>(this->kv.get_nks(), this->stowf.nchip_max, this->pw_wfc->npwk_max, this->kv.ngk.data());
8888
ModuleBase::Memory::record("SDFT::chiortho", size * sizeof(T));
8989
}
9090

0 commit comments

Comments
 (0)