Skip to content

Conversation

@Wuming-HUST
Copy link

Reminder

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

What's changed?

  • The memory out-of-bounds issue during DFT-1/2 calculations occurs because the self-energy potential for DFT-1/2 is not generated before initializing the effective potential potential_new. This problem can be fixed by reversing the order of operations and generating the DFT-1/2 self-energy potential earlier.

* During DFT-1/2 calculations, the self-energy potential vsep_cell
required for DFT-1/2 was not initialized before computing potential_new.

* The generation of the self-energy potential vsep_cell has been moved
forward to before the computation of potential_new.
* Add integration testing 01_PW/209_PW_DFTHALF for DFT-1/2
@mohanchen mohanchen added Bugs Bugs that only solvable with sufficient knowledge of DFT Refactor Refactor ABACUS codes Unit Tests/Integreate Tests Issues/PR related to unit tests and integrate tests labels Oct 10, 2025
@mohanchen mohanchen merged commit 1f7e8fb into deepmodeling:develop Oct 10, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bugs Bugs that only solvable with sufficient knowledge of DFT Refactor Refactor ABACUS codes Unit Tests/Integreate Tests Issues/PR related to unit tests and integrate tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants