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

PhCalculation: add symmetry related exit codes #1017

Merged
merged 9 commits into from
Mar 27, 2024

Conversation

bastonero
Copy link
Collaborator

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.

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.
@bastonero bastonero requested a review from mbercx March 25, 2024 09:11
@bastonero
Copy link
Collaborator Author

@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.

bastonero and others added 5 commits March 27, 2024 14:16
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.'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one too please ^^

Suggested change
'Try using the correct ibrav.'))
'Try using the lattice-specific `ibrav` != 0 in the parent `pw.x` calculation.'))

@bastonero bastonero requested a review from mbercx March 27, 2024 14:06
@bastonero
Copy link
Collaborator Author

Ah sorry @mbercx , i thought you pushed the changes. coming with the commit to fix the message

Copy link
Member

@mbercx mbercx left a 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!

@bastonero bastonero merged commit 5a6529f into aiidateam:main Mar 27, 2024
7 checks passed
@bastonero bastonero deleted the ph/exit-codes branch March 27, 2024 14:52
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.

PhBaseWorkChain: incompatible FFT grid error doesn't have an exit code
2 participants