Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The
JK_deriv2
function exists to compute the overlap-derivative-times-TEI part of the right side of the CPHF equation. It's a J-term and a K-like term. with overlap derivative integrals instead of a density.[1] The previous algorithm to do this first computed the alpha spin part in one function call, and then the beta spin part in another function call. This approach was redundant. The first function call had all the intermediates necessary to compute the beta part, but didn't use them. As a result, the function re-computed JK.This PR refactors
JK_deriv2
so it computes both spin cases in a single function call.[1] = There's also a Vx term, but its implementation was both unused and buggy. Now it's just unused. Trying to use it in the old way would be even more redundant.
User API & Changelog headlines
Dev notes & details
JK_deriv2
to compute both spin cases in a single function call.JK_deriv2
comply withcompute_Vx
's expected function signatureChecklist
ctest -R scf-hess
passesStatus