Skip to content

Commit 5c2b5b4

Browse files
authored
Update deepks_vdpre.cpp
1 parent ce7a3ad commit 5c2b5b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_hamilt_lcao/module_deepks/deepks_vdpre.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ void DeePKS_domain::prepare_phialpha(const int nlocal,
268268
std::complex<double> kphase = std::complex<double>(1.0, 0.0);
269269
if (std::is_same<TK, std::complex<double>>::value)
270270
{
271-
const double arg = (kvec_d[ik] * ModuleBase::Vector3<double>(dR)) * ModuleBase::TWO_PI;
271+
const double arg = -(kvec_d[ik] * ModuleBase::Vector3<double>(dR)) * ModuleBase::TWO_PI;
272272
kphase = std::complex<double>(cos(arg), sin(arg));
273273
}
274274
TK_tensor* kpase_ptr = reinterpret_cast<TK_tensor*>(&kphase);

0 commit comments

Comments
 (0)