Skip to content

Conversation

jeffschriber
Copy link
Contributor

@jeffschriber jeffschriber commented Aug 10, 2021

Description

In very rare cases, the number of frozen core orbitals in computing the dMP2 correction in SAPT was inconsistent between the dimer and monomer calculations. I only encountered this when one monomer was a charged alkali metal. For example, when computing the dMP2 correction for Na-H20, freeze_core true results in one frozen orbital each for Na and H2O in the separate monomer computations, but six frozen orbitals in the dimer computation. Separately, these values make sense, but in this context they result in a meaningless dMP2 value.

Todos

  • Set # frozen core for dimer as sum of monomer # frozen core

Checklist

  • Tests added for any new features
  • Add a warning in the manual

Status

  • Ready for review
  • Ready for merge

@loriab loriab added this to the Psi4 1.5 milestone Aug 10, 2021
@loriab loriab added correctness-error For issues where Psi4 gives answers that are wrong. sapt For issues about SAPT and its many flavors. labels Aug 10, 2021
@hokru
Copy link
Member

hokru commented Aug 10, 2021

Does this fix #2012 ?

@jeffschriber
Copy link
Contributor Author

This doesn't fix #2012, since in that case it seems that the number of frozen core orbitals in the dimer is sum of the number of frozen core orbitals in each monomer (at least for freeze_core -1, an error is thrown with freeze_core -2).

@hokru hokru merged commit fd7bb30 into psi4:master Aug 12, 2021
@jeffschriber jeffschriber requested a review from andysim April 14, 2022 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
correctness-error For issues where Psi4 gives answers that are wrong. sapt For issues about SAPT and its many flavors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants