-
Notifications
You must be signed in to change notification settings - Fork 142
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
Add evaluateDerivativesWF for J3 #4694
Conversation
Implement evaluateDerivativesWF, which is evaluateDerivatives with code for dhpsioverpsi removed.
I'm OK with taking this patch. Just to clarify this is for non-batched NLPP code path right? |
@@ -159,6 +160,7 @@ void test_J3_polynomial3D(const DynamicCoordinateKind kind_selected) | |||
const int NumOptimizables(optvars.size()); | |||
j3->checkOutVariables(optvars); | |||
dlogpsi.resize(NumOptimizables); | |||
dlogpsiWF.resize(NumOptimizables); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move line 154 and this line before 175.
Yes, this is for the non-batched NLPP code path. |
Test this please |
dlogpsiWF.resize(NumOptimizables); | ||
j3->evaluateDerivativesWF(elec_, optvars, dlogpsiWF); | ||
for (int i = 0; i < NumOptimizables; i++) | ||
CHECK(dlogpsi[i] == Approx(dlogpsiWF[i])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need ComplexApprox to build.
Test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need non-ANL approval
General comment: That this can be implemented with a near cut and paste of another function suggests we should rethink the functions in WavefunctionComponent & how we are coding them. |
Add the function
evaluateDerivativesWF
for the three-body Jastrow. It's a copy ofevaluateDerivatives
with the code to computedhpsioverpsi
removed.This function is needed for orbital rotation with psuedopotentials and J3.
What type(s) of changes does this code introduce?
Delete the items that do not apply
Does this introduce a breaking change?
What systems has this change been tested on?
desktop
Checklist
Update the following with a yes where the items apply. If you're unsure about any of them, don't hesitate to ask. This is
simply a reminder of what we are going to look for before merging your code.