Skip to content

Commit df73fb2

Browse files
committed
fix use way in exx_func
1 parent a879761 commit df73fb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/source_pw/module_pwdft/stress_func_exx.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void Stress_PW<FPTYPE, Device>::stress_exx(ModuleBase::matrix& sigma,
260260
// psi_nk in real space
261261
d_psi_in->fix_kb(ik, nband);
262262
T* psi_nk = d_psi_in->get_pointer();
263-
wfcpw->recip_to_real<std::complex<FPTYPE>,Device>(psi_nk, psi_nk_real, ik);
263+
wfcpw->recip_to_real<std::complex<FPTYPE>,base_device::DEVICE_CPU>(psi_nk, psi_nk_real, ik);
264264

265265
for (int iq = 0; iq < nqs; iq++)
266266
{
@@ -269,7 +269,7 @@ void Stress_PW<FPTYPE, Device>::stress_exx(ModuleBase::matrix& sigma,
269269
// psi_mq in real space
270270
d_psi_in->fix_kb(iq, mband);
271271
T* psi_mq = d_psi_in->get_pointer();
272-
wfcpw->recip_to_real<std::complex<FPTYPE>,Device>(psi_mq, psi_mq_real, iq);
272+
wfcpw->recip_to_real<std::complex<FPTYPE>,base_device::DEVICE_CPU>(psi_mq, psi_mq_real, iq);
273273

274274
// overlap density in real space
275275
setmem_complex_op()(density_real, 0.0, rhopw->nrxx);

0 commit comments

Comments
 (0)