-
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
patches in default LORBIT writing #1424
Conversation
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.
wrong logic before
Pull Request Test Coverage Report for Build 9181442884Details
💛 - Coveralls |
pyiron_atomistics/vasp/base.py
Outdated
if "LORBIT" not in self.input.incar._dataset["Parameter"]: | ||
# If LORBIT is not set, set it to 10 | ||
self.input.incar["LORBIT"] = 10 | ||
warnings.warn("We have set LORBIT = 10 to write magmoms to OUTCAR! This is a spin-polarized calculation.") |
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.
warnings.warn("We have set LORBIT = 10 to write magmoms to OUTCAR! This is a spin-polarized calculation.") | |
self.logger.warning("We have set LORBIT = 10 to write magmoms to OUTCAR! This is a spin-polarized calculation.") |
pyiron_atomistics/vasp/base.py
Outdated
else: | ||
# If LORBIT is set but not in the valid range, set it to 10 and warn | ||
if self.input.incar["LORBIT"] not in [0, 1, 2, 5, 10, 11, 12, 13, 14]: | ||
warnings.warn("Invalid LORBIT tag. We have set LORBIT = 10 to write magmoms to OUTCAR! This is a spin-polarized calculation.") |
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.
else: | |
# If LORBIT is set but not in the valid range, set it to 10 and warn | |
if self.input.incar["LORBIT"] not in [0, 1, 2, 5, 10, 11, 12, 13, 14]: | |
warnings.warn("Invalid LORBIT tag. We have set LORBIT = 10 to write magmoms to OUTCAR! This is a spin-polarized calculation.") | |
# If LORBIT is set but not in the valid range, set it to 10 and warn | |
elif self.input.incar["LORBIT"] not in [0, 1, 2, 5, 10, 11, 12, 13, 14]: | |
self.logger.warning("Invalid LORBIT tag. We have set LORBIT = 10 to write magmoms to OUTCAR! This is a spin-polarized calculation.") |
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.
lgtm, thanks!
LORBIT is not set by default when specifying spin-polarised calculations... This prevents writing of magnetisations to OUTCAR causing confusion;
i.e.
#1060
#1423