Skip to content

Conversation

@abussy
Copy link
Collaborator

@abussy abussy commented Nov 12, 2025

Fixes the issue raised by @antoine-levitt in #1189.

A new test item was also added to /test/occupation.jl, checking the sanity of occupation masks over various smearing methods and temperatures.

An additional test specifically designed to fail with the current state of DFTK was added as well.

Copy link
Member

@mfherbst mfherbst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix.

@antoine-levitt Do you agree ?

Comment on lines +309 to +310
basis = PlaneWaveBasis(model; Ecut=15, kgrid=[1, 1, 1])
scfres = self_consistent_field(basis; tol=1e-6)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
basis = PlaneWaveBasis(model; Ecut=15, kgrid=[1, 1, 1])
scfres = self_consistent_field(basis; tol=1e-6)
basis = PlaneWaveBasis(model; Ecut=10, kgrid=[2, 2, 2])
scfres = self_consistent_field(basis; tol=1e-2)

converges faster (at least for me) and also has the problem.

@antoine-levitt
Copy link
Member

Sure, thanks!

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.

3 participants