@@ -7,7 +7,7 @@ void folding_HR_td(const hamilt::HContainer<TR>& hR,
77 const ModuleBase::Vector3<double >& kvec_d_in,
88 const int ncol,
99 const int hk_type,
10- const UnitCell& ucell,
10+ const UnitCell* ucell,
1111 const ModuleBase::Vector3<double >& cart_At)
1212{
1313#ifdef _OPENMP
@@ -24,8 +24,8 @@ void folding_HR_td(const hamilt::HContainer<TR>& hR,
2424 // cal tddft phase for hybrid gague
2525 const int iat1 = tmp.get_atom_i ();
2626 const int iat2 = tmp.get_atom_j ();
27- ModuleBase::Vector3<double > dtau = ucell. cal_dtau (iat1, iat2, r_index);
28- const double arg_td = cart_At * dtau * ucell. lat0 ;
27+ ModuleBase::Vector3<double > dtau = ucell-> cal_dtau (iat1, iat2, r_index);
28+ const double arg_td = cart_At * dtau * ucell-> lat0 ;
2929 // new
3030
3131 // cal k_phase
@@ -47,14 +47,14 @@ void folding_HR_td<double>(const hamilt::HContainer<double>& hR,
4747 const ModuleBase::Vector3<double >& kvec_d_in,
4848 const int ncol,
4949 const int hk_type,
50- const UnitCell& ucell,
50+ const UnitCell* ucell,
5151 const ModuleBase::Vector3<double >& At);
5252template
5353void folding_HR_td<std::complex <double >>(const hamilt::HContainer<std::complex <double >>& hR,
5454 std::complex <double >* hk,
5555 const ModuleBase::Vector3<double >& kvec_d_in,
5656 const int ncol,
5757 const int hk_type,
58- const UnitCell& ucell,
58+ const UnitCell* ucell,
5959 const ModuleBase::Vector3<double >& At);
6060}// namespace module_rt
0 commit comments