Skip to content

Commit 5dace17

Browse files
committed
Fix v_delta_precalc error in DeePKS.
1 parent ab2e27a commit 5dace17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/module_hamilt_lcao/module_deepks/deepks_vdpre.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void DeePKS_domain::cal_v_delta_precalc(const int nlocal,
122122
{
123123
TK_tensor tmp = overlap_1->get_value(iw1, ib + m1)
124124
* overlap_2->get_value(iw2, ib + m2) * *kpase_ptr;
125-
accessor[ik][iw1][iw2][inl][m1][m2] += tmp;
125+
accessor[ik][iw1_all][iw2_all][inl][m1][m2] += tmp;
126126
}
127127
}
128128
ib += nm;
@@ -282,7 +282,7 @@ void DeePKS_domain::prepare_phialpha(const int nlocal,
282282
for (int m1 = 0; m1 < nm; ++m1) // nm = 1 for s, 3 for p, 5 for d
283283
{
284284
TK_tensor tmp = overlap->get_value(iw1, ib + m1) * *kpase_ptr;
285-
accessor[iat][nl][ik][iw1_local][m1] += tmp;
285+
accessor[iat][nl][ik][iw1_all][m1] += tmp;
286286
}
287287
ib += nm;
288288
nl++;

0 commit comments

Comments
 (0)