Skip to content

Feature: set ks_solver default to dav_subspace - #8507

Open
Cstandardlib wants to merge 4 commits into
deepmodeling:developfrom
Cstandardlib:feature/ks-solver-default-dav-subspace
Open

Cstandardlib wants to merge 4 commits into
deepmodeling:developfrom
Cstandardlib:feature/ks-solver-default-dav-subspace

Conversation

@Cstandardlib

@Cstandardlib Cstandardlib commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Linked Issue

Closes #8497

What's changed?

  • Set default value of ks_solver to dav_subspace for plane wave (basis_type=pw) calculations.
  • Update docs.

Impact on some Tests

  • Test cases are decoupled from the default value now, and every PW-basis case that implicitly relied on the old default now requests ks_solver explicitly.

…_subspace

dav_subspace is the recommended PW eigensolver and has become mature
and robust after recent fixes and extensions (including USPP support).
Making it the default gives most users better out-of-box performance
in speed and convergence.

- read_inp_estruc.cpp: AUTO_SET and default_value
- input_help.cpp, hsolver.md, performance.md: sync docs
- test_read_input_item.cpp: update the default-value assertion

Refs deepmodeling#8497
@Cstandardlib Cstandardlib added Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS Useful Information Useful information for others to learn/study Diago Issues related to diagonalizaiton methods labels Dec 3, 2026
…ault

- Pin ks_solver=cg in cases with too few plane waves for block
  solvers (npw < nbands*pw_diag_ndim), in cases locked to a specific
  SCF minimum (Eu f-states, charged Si), and in sensitive file-output
  regressions (W90/bands/LDOS/DFPT/wavefunction cubes).
- Pin ks_solver=cg in the Kubo-Greenwood cases (06_SDFT 16/17/18 and
  16_SDFT_GPU/001): nbands=100 is ~39% of npw=257, a regime where the
  highest bands of block solvers are not converged and the huge
  smearing (sigma=0.6 Ha) amplifies the error into a 1.85 eV energy
  shift.
- Regenerate result.ref for 43 01_PW cases, 8 06_SDFT cases and
  006_PW_SDFT_MALL_GPU (plus band.txt.ref of 14_PW_SDFT_10D10S_METHD2)
  that show only normal numerical drift; the largest relative
  deviation is ~1e-3 in the stochastic/MD pipeline, ~1e-5 elsewhere.

Refs deepmodeling#8497, deepmodeling#8500
@Cstandardlib
Cstandardlib force-pushed the feature/ks-solver-default-dav-subspace branch 2 times, most recently from 3397933 to 8b5c19f Compare December 4, 2026 02:44
Every PW-basis case that relied on the default ks_solver now requests
its historical solver (cg) explicitly, decoupling the test suite from
the default value: no reference values change, and future default
changes will not perturb these tests again. Benchmarks under
tests/performance/ intentionally keep tracking the default.
@Cstandardlib
Cstandardlib force-pushed the feature/ks-solver-default-dav-subspace branch from 8b5c19f to b6c7928 Compare December 4, 2026 07:46

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

Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS Diago Issues related to diagonalizaiton methods Useful Information Useful information for others to learn/study

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change the default ks_solver from cg to dav_subspace for PW basis

1 participant