Skip to content

Commit d4540f0

Browse files
delete the energy threshold in iter_finish()
1 parent 8f69fa2 commit d4540f0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

source/module_esolver/esolver_ks.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -681,13 +681,6 @@ void ESolver_KS<T, Device>::iter_finish(int& iter)
681681
}
682682
this->pelec->f_en.etot_delta = this->pelec->f_en.etot - this->pelec->f_en.etot_old;
683683
this->pelec->f_en.etot_old = this->pelec->f_en.etot;
684-
685-
// add a energy threshold for SCF convergence
686-
if (this->scf_ene_thr > 0.0 && this->conv_esolver == 1) // only check when density is converged
687-
{
688-
this->conv_esolver
689-
= (std::abs(this->pelec->f_en.etot_delta * ModuleBase::Ry_to_eV) < this->scf_ene_thr);
690-
}
691684
}
692685

693686
//! Something to do after SCF iterations when SCF is converged or comes to the max iter step.

0 commit comments

Comments
 (0)