Skip to content

Updates to the routines for occupancy - #470

Merged
davidbowler merged 9 commits into
developfrom
f-update-occupancies
Aug 21, 2026
Merged

davidbowler merged 9 commits into
developfrom
f-update-occupancies

Conversation

@davidbowler

Copy link
Copy Markdown
Contributor

Implement integer occupancies, place Fermi level mid-gap for semiconductors and insulators and write out gap when non-zero (none of these work with Methfessel-Paxton smearing!)

Added flag to allow user to specify integer occupancies
Track valence band maximum and conduction band minimum in occupy
(except for Methfessel-Paxton) and write out gap when present,
specifying direct or indirect and location
Test 007 identified a problem when there were degenerate levels
which has now been fixed
Occupancies now correct for all spin cases, and made zero of
energy for fixed spin common between two channels
@davidbowler davidbowler added this to the Release v1.6 milestone Aug 13, 2026
@davidbowler davidbowler self-assigned this Aug 13, 2026
@davidbowler davidbowler added area: main-source Relating to the src/ directory (main Conquest source code) improves: functionality Adding functionality to code improves: output Making output clearer or more consistent priority: minor time: days type: enhancement Planned enhancement being suggested by developers labels Aug 13, 2026
Mainly just making sure that the starting low electron number
is sensible, and tweaking formatting
I had used very_small to decide whether an energy level was VBM
or CBM (difference to one half) but this broke when tolElec was
bigger than very_small.  Only affected test007 but broke that
comprehensively.
This is unlikely to be needed unless for debugging (test_007 made
me think of it) but it's included for completeness.  Small updates
to documentation.
@davidbowler
davidbowler merged commit 1e09fd7 into develop Aug 21, 2026
8 checks passed
@davidbowler
davidbowler deleted the f-update-occupancies branch August 21, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: main-source Relating to the src/ directory (main Conquest source code) improves: functionality Adding functionality to code improves: output Making output clearer or more consistent priority: minor time: days type: enhancement Planned enhancement being suggested by developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants