Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Remove global dependence in force/stress calculation in DeePKS. #5824

Merged
merged 5 commits into from
Jan 7, 2025

Conversation

ErjieWu
Copy link
Collaborator

@ErjieWu ErjieWu commented Jan 6, 2025

Unit Tests and/or Case Tests for my changes

  • Add the check of gvepsl in unit test and corresponding reference files.
  • Change the reference files of gvx, since it was incompletely printed in the previous version.

What's changed?

  • Move functions related to gdmx and gvx to deepks_fpre.cpp (since they are used for DeePKS force calculations) and remove their global dependence. Change the print for gvx into correct size.
  • Move functions related to gdmepsl and gvepsl to deepks_spre.cpp (since they are used for DeePKS stress calculations) and remove their global dependence. Add function for printing gvepsl.

@mohanchen mohanchen added Refactor Refactor ABACUS codes The Absolute Zero Reduce the "entropy" of the code to 0 DeePKS Issues related to the DeePKS labels Jan 6, 2025
@mohanchen mohanchen merged commit 8407ee9 into deepmodeling:develop Jan 7, 2025
14 checks passed
@ErjieWu ErjieWu deleted the refactor branch January 7, 2025 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DeePKS Issues related to the DeePKS Refactor Refactor ABACUS codes 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