Skip to content

Commit 109723a

Browse files
committed
update
1 parent e72545e commit 109723a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

source/source_lcao/module_rt/td_folding.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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);
5252
template
5353
void 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

source/source_lcao/module_rt/td_folding.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void folding_HR_td(const hamilt::HContainer<TR>& hR,
1111
const ModuleBase::Vector3<double>& kvec_d_in,
1212
const int ncol,
1313
const int hk_type,
14-
const UnitCell& ucell,
14+
const UnitCell* ucell,
1515
const ModuleBase::Vector3<double>& At);
1616
}// namespace module_rt
1717

0 commit comments

Comments
 (0)