Skip to content

Conversation

@loriab
Copy link
Member

@loriab loriab commented Apr 28, 2023

Description

@carolinesargent identified a bug where running FSAPT with an external potential w/o having frozen the orientation with no_com + no_reorient would run but give the wrong answer. :-(

External potentials has long been one of those cases where we required the user to freeze the orientation at molecule creation time so that the potential could be set in the same frame. This couldn't be fixed driver-side because as soon as the core.Mol builds w/o freeze directives, it loses the original Cartesian coordinates. (The clone, set_nocom, set_noreorient calls in the driver allow regular sapt to forego user setting by preventing the dimer, monoA, monoB from having different frames.)

Happily, in the intervening period, @maxscheurer ran into exactly this problem for polarizable embedding potentials and solved it by tacking a copy of the original Cartesians onto the molecule. So we're applying this to FSAPT also.

I've been getting some segfaults that I think are a quirk of my directory, hence the cc31 testing.

User API & Changelog headlines

  • Fixes bug where FSAPT with an external potential and without no_com/no_reorient set would return wrong answer.

Dev notes & details

  • Let's use this route to accommodate aux info in the frame of the Cartesianmol

Checklist

Status

  • Ready for review
  • Ready for merge

@loriab loriab added this to the Psi4 1.8 milestone Apr 28, 2023
@loriab loriab added bug sapt For issues about SAPT and its many flavors. labels Apr 28, 2023
@loriab
Copy link
Member Author

loriab commented Apr 29, 2023

@taylor-a-barnes, just a heads-up to this small change to MDIEngine. It'll be in v1.8. I don't anticipate any implications for MDI.

@loriab loriab added this pull request to the merge queue May 2, 2023
Merged via the queue into psi4:master with commit ee46553 May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug sapt For issues about SAPT and its many flavors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants