-
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
Generalize case where only 1 particle of each type is present #3152
Conversation
Can one of the admins verify this patch? |
OK to test |
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 add a unit test, The J2 in opt/qmcpack/src/QMCWaveFunctions/tests/test_bspline_jastrow.cpp
can be a starting point.
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.
Many thanks for this Shiv. FYI I ran the full (but limited) set of optimzation tests and they seemed to be OK.
I agree that adding a unit test by expanding the example Ye pointed to would be good.
If you don't have time to do that let us know.
Yup sounds good. Thanks for the example Ye. I'll give it a try and report back |
The tests in |
@shivupa The added test doesn't trigger failure on develop. This then becomes a less effective test. |
Thanks working on this now. I think I misunderstood what was going on and Mark's previous test. Sorry about that |
Sorry is it possible to stop checks on this? I though converting to draft would, but I this these will pass regardless as the previous work did. I mainly pushed to ask some questions. |
We can't straightforwardly stop tests on a per-PR basis. However, we ignore the test results until the PR is marked as ready. |
Makes sense. I didn't want to waste the computational time. This is ready for review now! Thanks @ye-luo and @markdewing for the discussion. The test now checks the F vector for any nullptrs. This fails on develop as expected (the F vector is private on develop so once the function allowing access for F is added on develop, this will still fail as expected). |
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.
Looks good. Thanks for doing this!
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.
Thank you!!!!
Proposed changes
Closes #3137
This implements the fixes @markdewing recommended. It generalizes the special case of the two body jastrow where there are only 1 particle of each type present.
What type(s) of changes does this code introduce?
Does this introduce a breaking change?
What systems has this change been tested on?
Ryzen workstation (5900x, gcc version 10.2.0)
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.