Skip to content

Commit 38a9a56

Browse files
allow SCF converges at 1-st iteration
1 parent 9d40ac6 commit 38a9a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_esolver/esolver_ks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ void ESolver_KS<T, Device>::iter_finish(int& iter)
676676
if (this->conv_esolver == 1) // only check when density is converged
677677
{
678678
this->conv_esolver
679-
= (iter != 1 && std::abs(this->pelec->f_en.etot_delta * ModuleBase::Ry_to_eV) < this->scf_ene_thr);
679+
= (std::abs(this->pelec->f_en.etot_delta * ModuleBase::Ry_to_eV) < this->scf_ene_thr);
680680
}
681681
}
682682

0 commit comments

Comments
 (0)