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

MSD arbitrary species evaluation (1/N) #2947

Merged
merged 29 commits into from
Mar 3, 2021

Conversation

shivupa
Copy link
Contributor

@shivupa shivupa commented Feb 23, 2021

Proposed changes

This PR generalizes the functions in MultiSlaterDeterminantFast to work with an arbitrary number of particle types. This lifts the previous restriction of alpha/beta electrons. This is related to #2935.

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

  • New feature
  • Refactoring (no functional changes, no api changes)

Does this introduce a breaking change?

  • No, this is backwards compatible.

What systems has this change been tested on?

Workstation Ryzen 5900x/ GCC 10.2 Real build

Checklist

  • 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). This is not needed I think.

In future PR(s), further generalization is necessary. This involves most of what needs to be touched in MultiSlaterDeterminantFast.* so I am opening this for review.

@qmc-robot
Copy link

Can one of the admins verify this patch?

@prckent
Copy link
Contributor

prckent commented Feb 23, 2021

OK to test

@prckent
Copy link
Contributor

prckent commented Feb 23, 2021

Thanks Shiv!

@camelto2
Copy link
Contributor

This should largely address the problems in #2698. However, for full functionality we would need the orbital optimization to work as well. Changes will be needed in MultiDiracDeterminant as well as RotatedSPOs (essentially the problem is evaluateDerivatives and evaluateDerivativesWF which have hard coded dependencies on there being "alpha" and "beta" information passed into the functions)

@shivupa
Copy link
Contributor Author

shivupa commented Feb 23, 2021

I am not sure why some of the builds are failing. It looks like the jobs weren't able to check out the branch

Checking out Revision 767617fff5964493be86f22a17f89aef4e3e95c5 (refs/remotes/origin/pr/2947/merge)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 767617fff5964493be86f22a17f89aef4e3e95c5 # timeout=10
FATAL: Could not checkout 767617fff5964493be86f22a17f89aef4e3e95c5
hudson.plugins.git.GitException: Command "git checkout -f 767617fff5964493be86f22a17f89aef4e3e95c5" returned status code 128:
stdout: 
stderr: fatal: reference is not a tree: 767617fff5964493be86f22a17f89aef4e3e95c5

Did I break this?

@markdewing
Copy link
Contributor

This is a transient problem on checkout. You didn't do anything to break it.

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.

Great improvements.

@ye-luo
Copy link
Contributor

ye-luo commented Feb 24, 2021

Test this please

@shivupa
Copy link
Contributor Author

shivupa commented Feb 26, 2021

Hi I'm not ignoring this just busy with some other tasks. I should get to this within a day or two

}
ValueType dhpsi = (RealType)-0.5 * (q0 - dlogpsi[kk] * lapl_sum) - dlogpsi[kk] * gg;
for (size_t id = 0; id < Dets.size(); id++)
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove {}

@shivupa
Copy link
Contributor Author

shivupa commented Mar 1, 2021

Sorry about that I had missed some of your comments. I updated the remaining issues. I also did some additional cleaning. @ye-luo

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.

LGTM now. Please address the last few minor change requests and remove WIP if you think it is ready for merging.

@shivupa shivupa changed the title [WIP] MSD arbitrary species evaluation (1/N) MSD arbitrary species evaluation (1/N) Mar 3, 2021
@shivupa
Copy link
Contributor Author

shivupa commented Mar 3, 2021

LGTM now. Please address the last few minor change requests and remove WIP if you think it is ready for merging.

Thanks for the review! I updated it. Should be good to go now

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.

6 participants