Skip to content

Commit a483df3

Browse files
Fix: conv hard code thr for now
1 parent 56fb9a3 commit a483df3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/source_esolver/esolver_ks_pw.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,9 +623,9 @@ void ESolver_KS_PW<T, Device>::iter_finish(UnitCell& ucell, const int istep, int
623623
double dexx = exx_helper.cal_exx_energy(this->kspw_psi);
624624
exx_helper.set_psi(this->kspw_psi);
625625
dexx -= exx_helper.cal_exx_energy(this->kspw_psi);
626-
double exx_ene_thr = 1e-6;
626+
double exx_ene_thr = 1e-5;
627627
conv_esolver = std::abs(dexx) < exx_ene_thr || exx_helper.exx_after_converge(iter);
628-
628+
std::cout << "dexx = " << dexx << std::endl;
629629
if (!conv_esolver)
630630
{
631631
auto duration = std::chrono::high_resolution_clock::now() - start;

0 commit comments

Comments
 (0)