Skip to content

Refactor: save memory for kinetic and overlap force and stress#6881

Merged
mohanchen merged 10 commits intodeepmodeling:developfrom
dyzheng:refactor_force
Jan 23, 2026
Merged

Refactor: save memory for kinetic and overlap force and stress#6881
mohanchen merged 10 commits intodeepmodeling:developfrom
dyzheng:refactor_force

Conversation

@dyzheng
Copy link
Collaborator

@dyzheng dyzheng commented Jan 21, 2026

Reminder

  • Have you linked an issue with this pull request?
  • Have you added adequate unit tests and/or case tests for your pull request?
  • Have you noticed possible changes of behavior below or in the linked issue?
  • Have you explained the changes of codes in core modules of ESolver, HSolver, ElecState, Hamilt, Operator or Psi? (ignore if not applicable)

Linked Issue

Fix #6880

Unit Tests and/or Case Tests for my changes

  • A unit test is added for each new feature or bug fix.

What's changed?

  • Example: My changes might affect the performance of the application under certain conditions, and I have tested the impact on various scenarios...

Any changes of core modules? (ignore if not applicable)

  • Example: I have added a new virtual function in the esolver base class in order to ...

@mohanchen mohanchen merged commit 70c54c9 into deepmodeling:develop Jan 23, 2026
14 checks passed
Flying-dragon-boxing pushed a commit to Flying-dragon-boxing/abacus-develop that referenced this pull request Jan 26, 2026
…odeling#6881)

* Refactor: save memory for kinetic and overlap force and stress

* Test: add UT for ekinetic_new and overlap_new

* Fix: error of force and stress after refactor

* Fix: UT for ekinetic and overlap

* Fix: gamma_only error of force_stress of edm

* Refactor: unify force/stress calculation for overlap and ekinetic operators

* Fix: overlap force stress error for nspin=2

* split test to serial part and parallel part

---------

Co-authored-by: dyzheng <zhengdy@bjaisi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor force and stress calculations to reduce peak memory usage and improve maintainability

2 participants