Skip to content

Fix #2976 - #2977

Merged
JonathonMisiewicz merged 4 commits into
psi4:masterfrom
JonathonMisiewicz:2976
Jun 6, 2023
Merged

JonathonMisiewicz merged 4 commits into
psi4:masterfrom
JonathonMisiewicz:2976

Conversation

@JonathonMisiewicz

Copy link
Copy Markdown
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

@loriab loriab left a comment

Copy link
Copy Markdown
Member

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.

Comment thread psi4/src/psi4/dfmp2/mp2.cc
@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