Skip to content

Refactor: Remove C++17 syntax and optimize DMR calculation in DeePKS.#6094

Merged
mohanchen merged 4 commits into
deepmodeling:developfrom
ErjieWu:refactor
Apr 2, 2025
Merged

Refactor: Remove C++17 syntax and optimize DMR calculation in DeePKS.#6094
mohanchen merged 4 commits into
deepmodeling:developfrom
ErjieWu:refactor

Conversation

@ErjieWu

@ErjieWu ErjieWu commented Apr 1, 2025

Copy link
Copy Markdown
Collaborator

What's changed?

  • Remove the usage of if constexpr in DeePKS since it is the feature in C++17 and does not supported in C++11.
  • Add init_DMR() and update_dmr() to save and calculate DMR used in DeePKS. In the previous version, the calculation of DMR in DeePKS happens in force/stress calculation and for updating hamiltonian, which can be calculated only once in one iteration.

@mohanchen mohanchen added The Absolute Zero Reduce the "entropy" of the code to 0 Machine Learning & AI Issues related to AI labels Apr 2, 2025
@mohanchen mohanchen merged commit e3193c8 into deepmodeling:develop Apr 2, 2025
@ErjieWu ErjieWu deleted the refactor branch April 2, 2025 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Machine Learning & AI Issues related to AI The Absolute Zero Reduce the "entropy" of the code to 0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants