-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add proper smearing for VASP #454
Conversation
Pull Request Test Coverage Report for Build 1531571031
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @sudarsan-surendralal !
pyiron_atomistics/vasp/base.py
Outdated
@deprecate(arguments={"ismear": "Preferably use parameters `smearing` and `order` " | ||
"to set the type of smearing you want"}) | ||
def set_occupancy_smearing(self, smearing: str = None, width: float = None, | ||
order: int = 1, ismear: int = None) -> None: | ||
""" | ||
Set how the finite temperature smearing is applied in determining partial occupancies | ||
|
||
Args: | ||
smearing (str): Type of smearing (fermi/gaussian etc.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should explicitly say what's available.
elif smearing.lower().startswith("fermi"): | ||
self.input.incar["ISMEAR"] = -1 | ||
elif smearing.lower().startswith("gauss"): | ||
self.input.incar["ISMEAR"] = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe else ValueError
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me except for the nits from me and @samwaseda .
Co-authored-by: Marvin Poul <[email protected]>
No description provided.