Skip to content

Commit 7fdd771

Browse files
Improve output of H and S matrices: output matrices when the self-consistent iteration steps reach scf_nmax, even if the charge density doesn't converge. (#4147)
Co-authored-by: liuxiaohui <liuxiaohui@ustc.edu.cn>
1 parent 98f8ae9 commit 7fdd771

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/module_esolver/esolver_ks_lcao.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ void ESolver_KS_LCAO<TK, TR>::update_pot(const int istep, const int iter)
819819
ModuleBase::TITLE("ESolver_KS_LCAO", "update_pot");
820820

821821
// print Hamiltonian and Overlap matrix
822-
if (this->conv_elec)
822+
if (this->conv_elec || iter == GlobalV::SCF_NMAX)
823823
{
824824
if (!GlobalV::GAMMA_ONLY_LOCAL && hsolver::HSolverLCAO<TK>::out_mat_hs[0])
825825
{

0 commit comments

Comments
 (0)