@@ -188,7 +188,7 @@ void OperatorEXXPW<T, Device>::act_op(const int nbands,
188188 {
189189 const T *psi_nk = tmpsi_in + n_iband * nbasis;
190190 // retrieve \psi_nk in real space
191- wfcpw->recip_to_real <T,Device>( psi_nk, psi_nk_real, this ->ik );
191+ wfcpw->recip_to_real (ctx, psi_nk, psi_nk_real, this ->ik );
192192
193193 // for \psi_nk, get the pw of iq and band m
194194 auto q_points = get_q_points (this ->ik );
@@ -208,7 +208,7 @@ void OperatorEXXPW<T, Device>::act_op(const int nbands,
208208 // if (has_real.find({iq, m_iband}) == has_real.end())
209209 // {
210210 const T* psi_mq = get_pw (m_iband, iq);
211- wfcpw->recip_to_real <T,Device>( psi_mq, psi_mq_real, iq);
211+ wfcpw->recip_to_real (ctx, psi_mq, psi_mq_real, iq);
212212 // syncmem_complex_op()(this->ctx, this->ctx, psi_all_real + m_iband * wfcpw->nrxx, psi_mq_real, wfcpw->nrxx);
213213 // has_real[{iq, m_iband}] = true;
214214 // }
@@ -271,7 +271,7 @@ void OperatorEXXPW<T, Device>::act_op(const int nbands,
271271 } // end of iq
272272 auto h_psi_nk = tmhpsi + n_iband * nbasis;
273273 Real hybrid_alpha = GlobalC::exx_info.info_global .hybrid_alpha ;
274- wfcpw->real_to_recip <T,Device>( h_psi_real, h_psi_nk, this ->ik , true , hybrid_alpha);
274+ wfcpw->real_to_recip (ctx, h_psi_real, h_psi_nk, this ->ik , true , hybrid_alpha);
275275 setmem_complex_op ()(h_psi_real, 0 , rhopw->nrxx );
276276
277277 }
@@ -810,7 +810,7 @@ double OperatorEXXPW<T, Device>::cal_exx_energy_op(psi::Psi<T, Device> *ppsi_) c
810810 psi.fix_kb (ik, n_iband);
811811 const T* psi_nk = psi.get_pointer ();
812812 // retrieve \psi_nk in real space
813- wfcpw->recip_to_real <T,Device>( psi_nk, psi_nk_real, ik);
813+ wfcpw->recip_to_real (ctx, psi_nk, psi_nk_real, ik);
814814
815815 // for \psi_nk, get the pw of iq and band m
816816 // q_points is a vector of integers, 0 to nks-1
@@ -839,7 +839,7 @@ double OperatorEXXPW<T, Device>::cal_exx_energy_op(psi::Psi<T, Device> *ppsi_) c
839839 psi_.fix_kb (iq, m_iband);
840840 const T* psi_mq = psi_.get_pointer ();
841841 // const T* psi_mq = get_pw(m_iband, iq);
842- wfcpw->recip_to_real <T,Device>( psi_mq, psi_mq_real, iq);
842+ wfcpw->recip_to_real (ctx, psi_mq, psi_mq_real, iq);
843843
844844 T omega_inv = 1.0 / ucell->omega ;
845845
0 commit comments