Refactor&Feature: Mixing module#2998
Merged
dyzheng merged 65 commits intodeepmodeling:developfrom Oct 9, 2023
Merged
Conversation
…into charge_mixing
Feature: Add Pulay Mixing
Test: Update the unit tests of mixing.
kirk0830
reviewed
Oct 8, 2023
Collaborator
kirk0830
left a comment
There was a problem hiding this comment.
I add several comments. But overall there is a more important thing, it is, whether this PR is a refactor, or because it also brings new feature so it should be also a "Feature". If so, I guess more tests would be required...
This comment was marked as outdated.
This comment was marked as outdated.
dyzheng
approved these changes
Oct 8, 2023
kirk0830
approved these changes
Oct 9, 2023
Collaborator
kirk0830
left a comment
There was a problem hiding this comment.
Cant wait to see good performance brought about by this PR and on-coming our fully implementation of new DFT+U code
kirk0830
approved these changes
Oct 9, 2023
Collaborator
kirk0830
left a comment
There was a problem hiding this comment.
these changes are due to conflicts resolve.
maki49
pushed a commit
to maki49/abacus-develop
that referenced
this pull request
Oct 11, 2023
* Fix: bug of NAN in SDFT * Refactor: add Mixing module temporarily; abacus_pw can be compiled now * <Feature> Add Pulay Mixing * Merge https://github.com/Qianruipku/abacus-develop/tree/hotfix2 * Merge https://github.com/Qianruipku/abacus-develop/tree/hotfix2 * Change examples/bsse/water/result.ref * fix compiling * fix bug of plain mixing * fix bug of broyden_mixing * change default pulay to broyden * add unit test * add DCOPY * <Fix> Update pulay mixing * <Test> Add unit tests for plain, pulay, and broyden mixing. * fix bug in relax & add reset function * Merge https://github.com/Qianruipku/abacus-develop/tree/hotfix2 * add reset for pulay * <Fix> Update Broyden and Pulay * <Test> Update the unit tests of mixing. * finish all tests about mixing module * delete useless cout * add mix_reset into test * mix_rho doesnot depend on iter * fix a bug in pulay * fix bug for exx calculation * fix unit test stuck * delete openmp in global function to fix stuck in UTs * add openmp for mixing * fix warning: On entry to DGEMV parameter number 6 had an illegal value * add code coverage for mixing * change UT name for mixing_test * add annotations for mixing * add global variable for mixing --------- Co-authored-by: sunliang98 <1700011430@pku.edu.cn>
|
This PR also solved #3040 |
12 tasks
16 tasks
60 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In previous version "pulay" used simplified broyden method but is not the actual pulay method, so after this PR, all pulay should be replaced by broyden.

Fix #2768
Finish unit tests