Skip to content

Commit cc8055b

Browse files
committed
Fix a bug.
1 parent fa1d1fd commit cc8055b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/source_lcao/spar_hsr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ void sparse_format::cal_HSR(const UnitCell& ucell,
9292
// cal_STN_R_sparse(current_spin, sparse_thr);
9393
if (nspin == 1 || nspin == 2)
9494
{
95-
hamilt::HamiltLCAO<std::complex<double>, double>* p_ham_lcao
96-
= dynamic_cast<hamilt::HamiltLCAO<std::complex<double>, double>*>(p_ham);
95+
hamilt::HamiltLCAO<TK, double>* p_ham_lcao
96+
= dynamic_cast<hamilt::HamiltLCAO<TK, double>*>(p_ham);
9797

9898
HS_Arrays.all_R_coor = get_R_range(*(p_ham_lcao->getHR()));
9999

source/source_lcao/spar_st.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ void sparse_format::cal_SR(
2828
// cal_STN_R_sparse(current_spin, sparse_thr);
2929
if (nspin == 1 || nspin == 2)
3030
{
31-
hamilt::HamiltLCAO<std::complex<double>, double>* p_ham_lcao
32-
= dynamic_cast<hamilt::HamiltLCAO<std::complex<double>, double>*>(p_ham);
31+
hamilt::HamiltLCAO<TK, double>* p_ham_lcao
32+
= dynamic_cast<hamilt::HamiltLCAO<TK, double>*>(p_ham);
3333
const int cspin = 0;
3434
sparse_format::cal_HContainer<double>(pv, sparse_thr, *(p_ham_lcao->getSR()), SR_sparse);
3535
}

0 commit comments

Comments
 (0)