Skip to content

Refactor&Feature: Mixing module#2998

Merged
dyzheng merged 65 commits intodeepmodeling:developfrom
Qianruipku:hotfix2
Oct 9, 2023
Merged

Refactor&Feature: Mixing module#2998
dyzheng merged 65 commits intodeepmodeling:developfrom
Qianruipku:hotfix2

Conversation

@Qianruipku
Copy link
Collaborator

@Qianruipku Qianruipku commented Sep 21, 2023

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.
image

Fix #2768
Finish unit tests

Qianruipku and others added 30 commits August 27, 2023 17:27
Feature: Add Pulay Mixing
Test: Update the unit tests of mixing.
Copy link
Collaborator

@kirk0830 kirk0830 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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...

@kirk0830 kirk0830 changed the title Refactor: Mixing module Refactor&Feature: Mixing module Oct 8, 2023
@kirk0830 kirk0830 added Code Quality Feature Discussed The features will be discussed first but will not be implemented soon labels Oct 8, 2023
@dyzheng

This comment was marked as outdated.

Copy link
Collaborator

@kirk0830 kirk0830 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cant wait to see good performance brought about by this PR and on-coming our fully implementation of new DFT+U code

Copy link
Collaborator

@kirk0830 kirk0830 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these changes are due to conflicts resolve.

@dyzheng dyzheng merged commit 2ffa3d4 into deepmodeling:develop Oct 9, 2023
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>
@hongriTianqi
Copy link

This PR also solved #3040

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature Discussed The features will be discussed first but will not be implemented soon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reconstruction of the charge mixing module

6 participants