Skip to content

Fix #2976 #2977

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

Merged
merged 4 commits into from
Jun 6, 2023
Merged

Fix #2976 #2977

merged 4 commits into from
Jun 6, 2023

Conversation

JonathonMisiewicz
Copy link
Contributor

User API & Changelog headlines

  • Fixes a crash when attempting DFMP2 on systems with too few electrons to support MP2

Dev notes & details

  • Massively simplified the DFMP2 validation logic

Checklist

  • dfmp2 tests pass
  • Turned the bug report into a new test case. (Thanks for a clean one, Susi.)

Status

  • Ready for review
  • Ready for merge

@JonathonMisiewicz JonathonMisiewicz added crash For issues that cause a Psi4 non-compile, crash, segfault, or algorithm failure. dfmp2 For issues about the DFMP2 module. Not part of DFOCC. labels Jun 5, 2023
@JonathonMisiewicz JonathonMisiewicz added this to the Psi4 1.9 milestone Jun 5, 2023
Copy link
Member

@loriab loriab left a comment

Choose a reason for hiding this comment

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

So of the 8 alpha/beta active_occ/_vir cases that had zero or one electrons, previously this would throw with an informative message for 7 and return 0.0 for 1 (occ 1a0b), while now it returns 0.0 for all 8? Nice logic simplification. I've suggested some extra printing in case no-op wasn't intended.

@JonathonMisiewicz JonathonMisiewicz added this pull request to the merge queue Jun 6, 2023
Merged via the queue into psi4:master with commit d4422af Jun 6, 2023
@JonathonMisiewicz JonathonMisiewicz deleted the 2976 branch June 7, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash For issues that cause a Psi4 non-compile, crash, segfault, or algorithm failure. dfmp2 For issues about the DFMP2 module. Not part of DFOCC.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants