@@ -253,7 +253,7 @@ void toWannier90_PW::out_unk(
253253 {
254254 int ib = cal_band_index[ib_w];
255255
256- wfcpw->recip2real (&psi_pw (ik, ib, 0 ), porter, ik);
256+ wfcpw->recip_to_real <std:: complex < double >,base_device:: DEVICE_CPU > (&psi_pw (ik, ib, 0 ), porter, ik);
257257
258258 if (GlobalV::RANK_IN_POOL == 0 )
259259 {
@@ -383,7 +383,7 @@ void toWannier90_PW::unkdotkb(
383383 }
384384 }
385385
386- wfcpw->recip2real (phase, phase, cal_ik);
386+ wfcpw->recip_to_real <std:: complex < double >,base_device:: DEVICE_CPU > (phase, phase, cal_ik);
387387
388388 if (PARAM .inp .nspin == 4 )
389389 {
@@ -396,17 +396,17 @@ void toWannier90_PW::unkdotkb(
396396 // (2) fft and get value
397397 // int npw_ik = wfcpw->npwk[cal_ik];
398398 int npwx = wfcpw->npwk_max ;
399- wfcpw->recip2real (&psi_pw (cal_ik, im, 0 ), psir_up, cal_ik);
400- // wfcpw->recip2real (&psi_pw(cal_ik, im, npw_ik), psir_dn, cal_ik);
401- wfcpw->recip2real (&psi_pw (cal_ik, im, npwx), psir_dn, cal_ik);
399+ wfcpw->recip_to_real <std:: complex < double >,base_device:: DEVICE_CPU > (&psi_pw (cal_ik, im, 0 ), psir_up, cal_ik);
400+ // wfcpw->recip_to_real<std::complex<double>,base_device::DEVICE_CPU> (&psi_pw(cal_ik, im, npw_ik), psir_dn, cal_ik);
401+ wfcpw->recip_to_real <std:: complex < double >,base_device:: DEVICE_CPU > (&psi_pw (cal_ik, im, npwx), psir_dn, cal_ik);
402402 for (int ir = 0 ; ir < wfcpw->nrxx ; ir++)
403403 {
404404 psir_up[ir] *= phase[ir];
405405 psir_dn[ir] *= phase[ir];
406406 }
407407
408- wfcpw->real2recip (psir_up, psir_up, cal_ikb);
409- wfcpw->real2recip (psir_dn, psir_dn, cal_ikb);
408+ wfcpw->real_to_recip <std:: complex < double >,base_device:: DEVICE_CPU > (psir_up, psir_up, cal_ikb);
409+ wfcpw->real_to_recip <std:: complex < double >,base_device:: DEVICE_CPU > (psir_dn, psir_dn, cal_ikb);
410410
411411 for (int n = 0 ; n < num_bands; n++)
412412 {
@@ -447,13 +447,12 @@ void toWannier90_PW::unkdotkb(
447447 ModuleBase::GlobalFunc::ZEROS (psir, wfcpw->nmaxgr );
448448
449449 // (2) fft and get value
450- wfcpw->recip2real (&psi_pw (cal_ik, im, 0 ), psir, cal_ik);
450+ wfcpw->recip_to_real <std:: complex < double >,base_device:: DEVICE_CPU > (&psi_pw (cal_ik, im, 0 ), psir, cal_ik);
451451 for (int ir = 0 ; ir < wfcpw->nrxx ; ir++)
452452 {
453453 psir[ir] *= phase[ir];
454454 }
455-
456- wfcpw->real2recip (psir, psir, cal_ikb);
455+ wfcpw->real_to_recip <std::complex <double >,base_device::DEVICE_CPU >(psir, psir, cal_ikb);
457456
458457 for (int n = 0 ; n < num_bands; n++)
459458 {
0 commit comments