Skip to content

SDFT: DOS values of 1e52 at high electronic temperature #8379

In review

Description

@LiYuqiii

Describe the bug

Summary

With esolver_type sdft and out_dos 1 at a high electronic temperature (smearing_sigma = 25.58 Ry ≈ 348 eV, i.e. exactly the warm-dense-matter regime SDFT is meant for) the file dos_sdft.txt can contain DOS values of 1e52–1e64 eV⁻¹, with a cumulative sum of 3e52 and a reported "DOS max absolute Chebyshev Error" of 1.8e53. The same run reports its automatic Chebyshev interval with a positive lower bound (New Emin 18.06 Ry), i.e. above every bound state of the cell.

fig1_dos_text fig2_dos_curve

Observed

$ grep 'new Emin' OUT.autotest/running_scf.log
New Emax 190.2805908577727 Ry; new Emin 18.05612272531266 Ry      <-- Emin is positive

$ grep 'Chebyshev Error' run.log
DOS max absolute Chebyshev Error: 1.833707e+53

$ # 3 largest points of OUT.autotest/dos_sdft.txt
  #  energy(eV)         dos(eV^-1)              sum      error(eV^-1)
   2588.95         1.19279e+52         3.38249e+52         1.15357e+53
   2588.85         1.82564e+52         3.22786e+52         1.75567e+53
    2588.9         1.89982e+52         3.32285e+52         1.83371e+53
  • The DOS window actually written is [234.05, 2600.6] eV, while the Chebyshev interval used to
    compute it is [18.06, 190.28] Ry = [245.7, 2589.0] eV. Both edges of the requested grid therefore
    lie outside the interval, and the low-energy part of the spectrum is missing from the reported
    window.
  • The SCF itself converges normally (#SCF IS CONVERGED#) and its Ne / E_entropy(-TS) are
    unaffected; only the DOS stage produces these numbers.
  • The same behaviour is reached from the production warm-dense-carbon setup that motivated the
    report (ecutwfc 900, nbands_sto 280, nche_sto 40, smearing_sigma 25.57754484, ABACUS
    3.11.0-beta10): there the values reach 1e26-1e64 and the run stops with
    Cannot converge feimi energy.

The DOS stage prints no warning in this situation: the only visible trace is the absurd values in dos_sdft.txt and the Chebyshev Error line in run.log.

Expected behavior

  • DOS values must be finite and of the order of the physical density of states, and ∫ DOS dE must
    not depend on how the Chebyshev interval happens to be chosen.
  • An automatic lower bound above the lowest bound state of the cell should never be reported/accepted.

To Reproduce

INPUT (everything not listed is default):

INPUT_PARAMETERS
suffix            autotest
calculation       scf
esolver_type      sdft
method_sto        2
nbands            10
nbands_sto        20
nche_sto          80
emin_sto          0
emax_sto          0
seed_sto          20000
pseudo_dir        ../../PP_ORB      # tests/PP_ORB in the repository
pw_seed           1
symmetry          1
ecutwfc           210
scf_thr           1e-5
scf_nmax          30
basis_type        pw
smearing_method   fd
smearing_sigma    25.57754484      # 348 eV
mixing_type       broyden
mixing_beta       0.4
mixing_gg0        0.0
out_dos           1
dos_edelta_ev     0.05
dos_sigma         0.07
dos_nche          100
npart_sto         1

STRU:

ATOMIC_SPECIES
Si 14 Si.pz-vbc.UPF

LATTICE_CONSTANT
5

LATTICE_VECTORS
1 0 0
0 1 0
0 0 1

ATOMIC_POSITIONS
Direct
Si
0.0
1
0.00 0.00 0.00 1 1 1

KPT:

K_POINTS
0
Gamma
1 1 1 0 0 0

Environment

  • ABACUS develop @ 503be43 (v3.11.0-beta13), CPU build (abacus_pw_para), GNU 11.4.0, OpenMPI 5.0.10 * mpirun -np 4
  • Γ point only, symmetry 1

Additional Context

No response

Task list for Issue attackers (only for developers)

  • Verify the issue is not a duplicate.
  • Describe the bug.
  • Steps to reproduce.
  • Expected behavior.
  • Error message.
  • Environment details.
  • Additional context.
  • Assign a priority level (low, medium, high, urgent).
  • Assign the issue to a team member.
  • Label the issue with relevant tags.
  • Identify possible related issues.
  • Create a unit test or automated test to reproduce the bug (if applicable).
  • Fix the bug.
  • Test the fix.
  • Update documentation (if necessary).
  • Close the issue and inform the reporter (if applicable).

Activity

  1. added
    Bugs
    on Nov 24, 2026
  2. added theissue type on Nov 24, 2026
  3. ABACUS-PR-BOT commented on Nov 24, 2026

    @ABACUS-PR-BOT
    Collaborator

    The DOS path has source-confirmed setup and output defects, but the padded output energy grid is not itself the cause of Chebyshev extrapolation. Spectral containment of the normalized Hamiltonian needs to be validated before attributing the reported blow-up.

    At 503be43:

    • DOS restarts the bound search from the INPUT trials, so the reported zero trials discard the SCF bounds. Its probe selector also reads Stochastic_WF::nchi, which stays at its default zero because allocation uses a local nchi. Thus this DOS check takes the random-vector branch, even though mixed stochastic orbitals exist.
    • The plotted energy changes the Gaussian centre; the recurrence acts on the normalized Hamiltonian. Extending or clipping the plotted grid is therefore distinct from enclosing the operator spectrum. The Rayleigh-quotient check is not an enclosure certificate: equal-weight modes at normalized eigenvalues ±a, a>1, can retain zero Rayleigh quotient while their Chebyshev norms grow. This is an analytic failure mode, not a reproduction of this run.
    • The automatic window ignores explicit KS eigenvalues, whose Gaussian contributions are added later. Any KS peaks below that window are omitted. A positive stochastic lower bound alone is insufficient to diagnose this in a mixed calculation.
    • The error column and maximum omit the Ry-to-eV division applied to DOS, despite the eV⁻¹ column label. This unit error cannot explain the enormous DOS itself.

    #8382 and Draft #8383 propose related changes; neither is merged into the inspected develop revision. Their reported runs do not establish a verified resolution here. A useful regression must compare with a known-spectrum Gaussian trace, cover the explicit KS states, and check recurrence stability before increasing dos_nche. DOS order/broadening convergence remains separate from SCF convergence.

    Static review only; no builds or runtime tests were run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugs

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions