Skip to content

Fix frequency-dependent iterative CPHF#91

Open
berquist wants to merge 11 commits intopsi4:masterfrom
berquist:fix-dynamic-iterative-cphf
Open

Fix frequency-dependent iterative CPHF#91
berquist wants to merge 11 commits intopsi4:masterfrom
berquist:fix-dynamic-iterative-cphf

Conversation

@berquist
Copy link
Copy Markdown
Contributor

A bug where the list holding response vectors (self.x) wasn't cleared was hiding the fact that solve_dynamic_iterative was not correct.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #91 into master will decrease coverage by <.01%.
The diff coverage is 100%.

# Build initial guess, previous vectors, and DIIS objects
norb = self.scf_wfn.nmo()
C = np.asarray(self.C)
rhsmats = [C.T @ np.asarray(dipmat) @ C for dipmat in self.tmp_dipoles]
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.

Could you use np.dot here. I do like the @ syntax better, just not sure if people are ready for it yet.

Copy link
Copy Markdown
Member

@dgasmith dgasmith left a comment

Choose a reason for hiding this comment

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

I am not quite sure I follow this error, but everything looks good to me in general. Happy to merge once this comes out of draft.

@berquist berquist marked this pull request as ready for review November 11, 2022 04:55
@berquist
Copy link
Copy Markdown
Contributor Author

It is lost to the ages what the actual problem with the iterative solver was (something with separate response vectors rather than a single combined U?), but I had left this draft in the hopes of referencing another paper or two, but clearly that didn't happen. The code has been done the entire time.

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.93%. Comparing base (3d4dc5a) to head (bb825c1).
⚠️ Report is 100 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants