-
Notifications
You must be signed in to change notification settings - Fork 82
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
PhCalculation
: add symmetry related exit codes
#1017
Conversation
Fixes aiidateam#1001 Some symmetry errors that ph.x can stop with are added. They are related to how the PHonon code handles internally symmetry, which unfortunately is slightly different from the PW code, which is used as a necessary previous step to run ph.x. This is generally due to some interal hard-coded thresholds. The solution is generally to run pw.x by specifying the ibrav, instead of the general ibrav=0. This cannot be handled though, as it would require to re-run the pw.x code.
@mbercx very simple PR, but recently I was so annoyed by the fact I could not distinguish wether the PH code was stoppiing due to this error or due to some scheduler issues. As written in the PR, these errors don't have a straight solution if not rerunning pw.x with e.g. ibrav or more relaxed positions/cell. So I put them in the 300s range. |
Co-authored-by: Marnik Bercx <mbercx@gmail.com>
Fixes aiidateam#1001 Some symmetry errors that ph.x can stop with are added. They are related to how the PHonon code handles internally symmetry, which unfortunately is slightly different from the PW code, which is used as a necessary previous step to run ph.x. This is generally due to some interal hard-coded thresholds. The solution is generally to run pw.x by specifying the ibrav, instead of the general ibrav=0. This cannot be handled though, as it would require to re-run the pw.x code.
Co-authored-by: Marnik Bercx <mbercx@gmail.com>
'`ibrav` != 0 in the parent `pw.x` calculation.') | ||
spec.exit_code(361, 'ERROR_WRONG_REPRESENTATION', | ||
message=('The representation found seems to be wrong according to the detected symmetries. ' | ||
'Try using the correct ibrav.')) |
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.
This one too please ^^
'Try using the correct ibrav.')) | |
'Try using the lattice-specific `ibrav` != 0 in the parent `pw.x` calculation.')) |
Ah sorry @mbercx , i thought you pushed the changes. coming with the commit to fix the message |
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 again, @bastonero!
Fixes #1001
Some symmetry errors that ph.x can stop with are added. They are related to how the PHonon code handles internally symmetry, which unfortunately is slightly different from the PW code, which is used as a necessary previous step to run ph.x. This is generally due to some interal hard-coded thresholds. The solution is generally to run pw.x by specifying the ibrav, instead of the general ibrav=0. This cannot be handled though, as it would require to re-run the pw.x code.