Skip to content

Commit 0253953

Browse files
committed
restore esolver_ks_lcao iter_finish
1 parent df61055 commit 0253953

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source/source_esolver/esolver_ks_lcao.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,9 @@ void ESolver_KS_LCAO<TK, TR>::iter_finish(UnitCell& ucell, const int istep, int&
606606
const std::vector<std::vector<TK>>& dm_vec
607607
= dynamic_cast<elecstate::ElecStateLCAO<TK>*>(this->pelec)->get_DM()->get_DMK_vector();
608608

609+
// control the output related to the finished iteration
610+
// ModuleIO::ctrl_iter_lcao<TK, TR>();
611+
609612
// 1) calculate the local occupation number matrix and energy correction in DFT+U
610613
if (PARAM.inp.dft_plus_u)
611614
{
@@ -645,7 +648,10 @@ void ESolver_KS_LCAO<TK, TR>::iter_finish(UnitCell& ucell, const int istep, int&
645648
sc.cal_mi_lcao(iter);
646649
}
647650

648-
// 4) call iter_finish() of ESolver_KS
651+
// call iter_finish() of ESolver_KS, where band gap is printed,
652+
// eig and occ are printed, magnetization is calculated,
653+
// charge mixing is performed, potential is updated,
654+
// HF and kS energies are computed, meta-GGA, Jason and restart
649655
ESolver_KS<TK>::iter_finish(ucell, istep, iter, conv_esolver);
650656

651657
// 5) mix density matrix if mixing_restart + mixing_dmr + not first

0 commit comments

Comments
 (0)