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

DFTensor for DCT #2250

Merged
merged 2 commits into from
Aug 12, 2021
Merged

Conversation

JonathonMisiewicz
Copy link
Contributor

@JonathonMisiewicz JonathonMisiewicz commented Jul 17, 2021

Description

This PR introduces a new DFTensor class to DCT. This is a lightweight wrapper over Matrix which I use to get some extra dimension information, as well as to store the DF contraction functions which were previously cluttering DCT's wavefunction object. Accordingly, many objects which were previously a Matrix have been specialized to a DFTensor. This also allows more careful input validation for the functions of DFTensor, but my primary motivation is for code organization for the sake of a future PR.

Although there's a large LoC change, most of this is just moving code around and the bare minimum changes needed to make the code compile. Reviewers, the thing to look at is the header files.

Also of note: Matrix bQpqA_mo_; was never actually used and is thus removed. That should be decent memory savings.

Do not merge until 1.5. It is far too late in the game for PRs of this scope.

Checklist

  • DCT test passing

Status

  • Ready for review
  • Ready for merge

@JonathonMisiewicz JonathonMisiewicz added dct For issues with the DCT module. cleanup For issues where the goal is to make Psi4 a little cleaner. labels Jul 17, 2021
@JonathonMisiewicz JonathonMisiewicz added this to the Psi4 1.5 milestone Jul 17, 2021
@JonathonMisiewicz
Copy link
Contributor Author

I'd forget the formatting changes if I didn't do them now. Changes made. Will merge once tests re-pass.

@JonathonMisiewicz JonathonMisiewicz merged commit c329dfc into psi4:master Aug 12, 2021
@JonathonMisiewicz JonathonMisiewicz deleted the df_contract branch August 12, 2021 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup For issues where the goal is to make Psi4 a little cleaner. dct For issues with the DCT module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants