diff --git a/source/module_esolver/esolver_ks_lcao.cpp b/source/module_esolver/esolver_ks_lcao.cpp index 80c2d94c79..4fb606be36 100644 --- a/source/module_esolver/esolver_ks_lcao.cpp +++ b/source/module_esolver/esolver_ks_lcao.cpp @@ -819,7 +819,7 @@ void ESolver_KS_LCAO::update_pot(const int istep, const int iter) ModuleBase::TITLE("ESolver_KS_LCAO", "update_pot"); // print Hamiltonian and Overlap matrix - if (this->conv_elec) + if (this->conv_elec || iter == GlobalV::SCF_NMAX) { if (!GlobalV::GAMMA_ONLY_LOCAL && hsolver::HSolverLCAO::out_mat_hs[0]) {