Skip to content

Commit f66f7bb

Browse files
committed
Fix: enable combination of ncpp and uspp
1 parent 2ee9243 commit f66f7bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/module_hamilt_pw/hamilt_pwdft/VNL_in_pw.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,6 +1542,8 @@ void pseudopot_cell_vnl::newq(const ModuleBase::matrix& veff, const ModulePW::PW
15421542
fact = 2.0;
15431543
}
15441544

1545+
deeq.zero_out();
1546+
15451547
const int npw = rho_basis->npw;
15461548
ModuleBase::matrix ylmk0(lmaxq * lmaxq, npw);
15471549
ModuleBase::YlmReal::Ylm_Real(lmaxq * lmaxq, npw, rho_basis->gcar, ylmk0);

0 commit comments

Comments
 (0)