Skip to content

Fix SCF residuals and density mixing on double grids - #8513

Open
AsTonyshment wants to merge 4 commits into
deepmodeling:developfrom
AsTonyshment:fix/scf_thr_type
Open

AsTonyshment wants to merge 4 commits into
deepmodeling:developfrom
AsTonyshment:fix/scf_thr_type

Conversation

@AsTonyshment

@AsTonyshment AsTonyshment commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

What's Changed?

Fix #8510.

  • Use the full density grid for real-space residuals and mixing, fixing skipped grid points and incorrect convergence checks with scf_thr_type=2.
  • Compute kinetic-energy density on the wavefunction grid and interpolate it to the dense grid, fixing buffer overruns in meta-GGA calculations.
  • Add a unit test for double-grid residuals and mixing, and run the SCAN density-output test with double grids on CPU and GPU.

@AsTonyshment
AsTonyshment force-pushed the fix/scf_thr_type branch 2 times, most recently from 1dd61f3 to 3f0626f Compare December 4, 2026 09:17
@mohanchen mohanchen added Bugs Bugs that only solvable with sufficient knowledge of DFT Refactor Refactor ABACUS codes Solve before 3.11 labels Dec 4, 2026

This branch has not been deployed

No deployments
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 Solve before 3.11

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scf_thr_type=2 uses the wrong grid size for residuals and mixing with double grids

2 participants