Skip to content

Conversation

@WHUweiqingzhou
Copy link
Collaborator

Fix #5011

In previous PR #5357, I add the energy threshold in iter_finish. We find it may result in some problems for
scf_ene_thr converges while scf_thr does not converge. In that case, the output density is mixed, while the output energy is not mixed. This PR fixes it.

@mohanchen mohanchen added the Refactor Refactor ABACUS codes label Oct 31, 2024
@mohanchen mohanchen merged commit 4d2366c into deepmodeling:develop Oct 31, 2024
14 checks passed
@WHUweiqingzhou WHUweiqingzhou deleted the scf_ene_thr branch October 31, 2024 07:54
Fisherd99 pushed a commit to Fisherd99/abacus-BSE that referenced this pull request Mar 31, 2025
* add the energy threshold for SCF before mix_rho

* delete the energy threshold in iter_finish()

* calculate the energy of output density every iteration and output it

* only update_pot for scf_ene_thr>0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Energy is converge to 1e-7, but drho only to 1e-3

2 participants