Skip to content

Commit 20a0cac

Browse files
committed
fix brace error
1 parent a26c39f commit 20a0cac

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

source/module_hsolver/hsolver_pw.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,15 @@ void HSolverPW<T, Device>::solve(hamilt::Hamilt<T, Device>* pHamilt,
182182
// solve eigenvector and eigenvalue for H(k)
183183
this->hamiltSolvePsiK(pHamilt, psi, precondition, eigenvalues.data() + ik * psi.get_nbands(), this->wfc_basis->nks);
184184

185-
if (skip_charge)
186-
{
187-
GlobalV::ofs_running << " k(" << ik+1 << "/" << pes->klist->get_nkstot()
188-
<< ") Iter steps (avg)=" << DiagoIterAssist<T, Device>::avg_iter
189-
<< " threshold=" << this->diag_thr << std::endl;
190-
DiagoIterAssist<T, Device>::avg_iter = 0.0;
185+
if (skip_charge)
186+
{
187+
GlobalV::ofs_running << " k(" << ik+1 << "/" << pes->klist->get_nkstot()
188+
<< ") Iter steps (avg)=" << DiagoIterAssist<T, Device>::avg_iter
189+
<< " threshold=" << this->diag_thr << std::endl;
190+
DiagoIterAssist<T, Device>::avg_iter = 0.0;
191+
}
192+
/// calculate the contribution of Psi for charge density rho
191193
}
192-
/// calculate the contribution of Psi for charge density rho
193194
}
194195

195196
count++;

0 commit comments

Comments
 (0)