Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor update to make FermiDos more robust #4240

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kavanase
Copy link
Contributor

@kavanase kavanase commented Dec 29, 2024

This is a minor fix to the get_doping method in FermiDos to make it a little more robust, so that it can handle rare cases where there is only either 0 or 1 energy increments between the VBM and CBM indices (e.g. Dirac cone systems or toy test cases). This is done by starting the CB integral (for electron concentrations) from either the mid-gap index or, if mid-gap index is the VBM, from VBM+1 (= CBM index), and vice versa for the VB integral for hole concentrations.

@kavanase kavanase force-pushed the minor_FermiDos_robustness_update branch from db71bbe to d1f986d Compare December 29, 2024 14:05
kavanase added a commit to SMTG-Bham/doped that referenced this pull request Dec 30, 2024
@shyuep
Copy link
Member

shyuep commented Dec 31, 2024

Thanks. Can you add a unittest for the functionality pls?

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.

2 participants