@@ -93,7 +93,7 @@ std::complex<double> unkOverlap_pw::unkdotp_G0(const ModulePW::PW_Basis* rhopw,
9393 }
9494
9595 // (3) calculate the overlap in ik_L and ik_R
96- wfcpw->real2recip (psi_r, psi_r, ik_R);
96+ wfcpw->real_to_recip <std:: complex < double >,base_device::DEVICE_CPU> (psi_r, psi_r, ik_R);
9797
9898 for (int ig = 0 ; ig < evc->get_ngk (ik_R); ig++)
9999 {
@@ -197,8 +197,8 @@ std::complex<double> unkOverlap_pw::unkdotp_soc_G0(const ModulePW::PW_Basis* rho
197197
198198 // (2) fft and get value
199199 rhopw->recip2real (phase, phase);
200- wfcpw->recip2real (&evc[0 ](ik_L, iband_L, 0 ), psi_up, ik_L);
201- wfcpw->recip2real (&evc[0 ](ik_L, iband_L, npwx), psi_down, ik_L);
200+ wfcpw->recip_to_real <std:: complex < double >,base_device::DEVICE_CPU> (&evc[0 ](ik_L, iband_L, 0 ), psi_up, ik_L);
201+ wfcpw->recip_to_real <std:: complex < double >,base_device::DEVICE_CPU> (&evc[0 ](ik_L, iband_L, npwx), psi_down, ik_L);
202202
203203 for (int ir = 0 ; ir < wfcpw->nrxx ; ir++)
204204 {
@@ -207,8 +207,8 @@ std::complex<double> unkOverlap_pw::unkdotp_soc_G0(const ModulePW::PW_Basis* rho
207207 }
208208
209209 // (3) calculate the overlap in ik_L and ik_R
210- wfcpw->real2recip (psi_up, psi_up, ik_L);
211- wfcpw->real2recip (psi_down, psi_down, ik_L);
210+ wfcpw->real_to_recip <std:: complex < double >,base_device::DEVICE_CPU> (psi_up, psi_up, ik_L);
211+ wfcpw->real_to_recip <std:: complex < double >,base_device::DEVICE_CPU> (psi_down, psi_down, ik_L);
212212
213213 for (int i = 0 ; i < PARAM.globalv .npol ; i++)
214214 {
0 commit comments