File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
source/module_hamilt_lcao/module_deepks Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ void DeePKS_domain::cal_v_delta_precalc(const int nlocal,
106106 if (std::is_same<TK, std::complex <double >>::value)
107107 {
108108 const double arg
109- = - (kvec_d[ik] * ModuleBase::Vector3<double >(dR1 - dR2)) * ModuleBase::TWO_PI;
109+ = (kvec_d[ik] * ModuleBase::Vector3<double >(dR1 - dR2)) * ModuleBase::TWO_PI;
110110 kphase = std::complex <double >(cos (arg), sin (arg));
111111 }
112112 TK_tensor* kpase_ptr = reinterpret_cast <TK_tensor*>(&kphase);
@@ -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++;
You can’t perform that action at this time.
0 commit comments