Skip to content
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

Two-body jastrow optimization bug fix : Set opt offset to be equal to first active variable #2834

Closed
wants to merge 1 commit into from

Conversation

shivupa
Copy link
Contributor

@shivupa shivupa commented Jan 1, 2021

Detailed disussion on issue #2814

Proposed changes

The two body jastrow optimization would fail when the first optimizable parameters were not the first parameters (e.g. if the u-u terms were frozen). This implements @markdewing's suggestions from #2814, which fixes the offset variable to point at the correct set of parameters.

Closes #2814

What type(s) of changes does this code introduce?

Delete the items that do not apply

  • Bugfix

Does this introduce a breaking change?

  • Yes

What systems has this change been tested on?

Laptop Intel i7-7700HQ
Desktop Intel i7-2600S

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.

  • Yes. This PR is up to date with current the current state of 'develop'
  • Yes. Code added or changed in the PR has been clang-formatted
  • No. This PR adds tests to cover any new code, or to catch a bug that is being fixed
  • No. Documentation has been added (if appropriate)

@qmc-robot
Copy link

Can one of the admins verify this patch?

@prckent
Copy link
Contributor

prckent commented Jan 1, 2021

OK to test

@ye-luo ye-luo self-requested a review January 1, 2021 21:14
Copy link
Contributor

@ye-luo ye-luo left a comment

Choose a reason for hiding this comment

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

Unfortunately, the added change breaks optimization tests like short-H4-opt-linear-16-1 and short-H4-opt-OneShiftOnly-1-16.

@shivupa shivupa marked this pull request as draft January 2, 2021 07:43
@prckent
Copy link
Contributor

prckent commented Jan 12, 2021

@shivupa Since this is more complicated than we were expecting, should I find someone else to continue this? I know you have your own research to get on with, and on our side this might be the catalyst to setup a broader set of quick to run deterministic optimization tests, check if this error pattern is repeated in other jastrows etc.. Cheers, Paul

@shivupa
Copy link
Contributor Author

shivupa commented Jan 12, 2021

Thanks. I tried to take a look, but it is definitely more complicated than I have the bandwidth for right now! I'd appreciate that.

@shivupa shivupa closed this Jan 12, 2021
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.

Freezing two-body Jastrow parameters does not work
4 participants