Test NLPP parameter derivative - #4394
Merged
Merged
Conversation
Using the hcpBe test case, add a test of parameter derivative functions. Update the python scripts to enable validation.
Contributor
|
I agree with your |
prckent
reviewed
Jan 13, 2023
prckent
left a comment
Contributor
There was a problem hiding this comment.
Are you proposing to move all the existing potentials to tests/pseudopotentials_for_tests in a later PR?
Contributor
Author
|
I moved this pseudopotential because it made it easier to add it to the list in QMCHamiltonians/tests/CMakeLists.txt. The existing placement of pseudopotential files seems to be a mix of in-place, and linked to pseudopotentials_for_tests. I could move other existing files if you want, in a future PR. |
prckent
approved these changes
Jan 13, 2023
prckent
left a comment
Contributor
There was a problem hiding this comment.
LGTM
Browsing via the web it looks like most potentials have already been relocated. If you can move any remaining for consistency, please do.
Contributor
|
Test this please |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This test provides a use-case for #4369. I tried adding a "debug_" prefix to the flag, but "debug_randomize_grid" looks like "debug" is a verb. Having a default of "true" for normal operation seemed strange.
In this PR, the sense of the flag is flipped and named "disable_randomize_grid". This seems to be more natural as normal operation has the flag off.
There are alternatives to using this flag, but I didn't pursue them:
To simplify the comparison script, there are no long-range sums. There is no e-e or i-i term in the Hamiltonian, and the pseudopotential has pbc="no".
The wavefunction uses a multideterminant wavefunction. In the future, this test can be copied and changed to use a single determinant wavefunction to test the fixes needed in that case.
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.