Skip to content

Commit 884d47d

Browse files
authored
Update hsolver_lcao.cpp
1 parent 686be13 commit 884d47d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/source_hsolver/hsolver_lcao.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void HSolverLCAO<TK, Device>::solve(hamilt::Hamilt<TK>* pHamilt,
112112
else if (this->method == "pexsi")
113113
{
114114
#ifdef __PEXSI // other purification methods should follow this routine
115-
DiagoPexsi<T> pe(ParaV);
115+
DiagoPexsi<TK> pe(ParaV);
116116
for (int ik = 0; ik < psi.get_nk(); ++ik)
117117
{
118118
/// update H(k) for each k point
@@ -121,7 +121,7 @@ void HSolverLCAO<TK, Device>::solve(hamilt::Hamilt<TK>* pHamilt,
121121
// solve eigenvector and eigenvalue for H(k)
122122
pe.diag(pHamilt, psi, nullptr);
123123
}
124-
auto _pes = dynamic_cast<elecstate::ElecStateLCAO<T>*>(pes);
124+
auto _pes = dynamic_cast<elecstate::ElecStateLCAO<TK>*>(pes);
125125
pes->f_en.eband = pe.totalFreeEnergy;
126126
// maybe eferm could be dealt with in the future
127127
_pes->dm2rho(pe.DM, pe.EDM, dm);

0 commit comments

Comments
 (0)