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

Nexus: Handle J3 terms in spin-orbit calculations #5184

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

aannabe
Copy link
Contributor

@aannabe aannabe commented Sep 23, 2024

Proposed changes

For spin-orbit calculations, we only have up electron species. Currently in Nexus, J3 is written as usual with up and down electrons, which errors out in qmcpack. This PR loops over the three-body-Jastrow object and deletes terms that have up-down interactions.

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

  • Bugfix

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

Local machine.

Checklist

  • Yes. This PR is up to date with current the current state of 'develop'

@prckent
Copy link
Contributor

prckent commented Sep 23, 2024

Did you investigate the possibility of not creating these terms in the first place?

@aannabe
Copy link
Contributor Author

aannabe commented Sep 23, 2024

I haven't investigated that route. Deleting the down terms seemed the easiest way in terms of handling it. Also, J2 was handled similarly to this, but for some reason J3 was left out. If you think it's better to not generate these terms in the first place, I can take a closer look.

@prckent
Copy link
Contributor

prckent commented Sep 24, 2024

Thanks -- I was just asking. Probably this is the pragmatic and quickest route and we should go ahead with this (@jtkrogel ?) but clearly it would be cleaner to never create incorrect terms in the first place. That would mean the parts of Nexus that create wavefunction components would inspect the spin and spin-orbit configuration before creating their terms.

@camelto2
Copy link
Contributor

camelto2 commented Oct 7, 2024

This LGTM. I am approving in case you need non-ORNL approval, and I would like to have this for my work.

@ye-luo
Copy link
Contributor

ye-luo commented Oct 7, 2024

Test this please

@ye-luo ye-luo enabled auto-merge October 7, 2024 16:40
@ye-luo ye-luo merged commit 5a4a0a2 into QMCPACK:develop Oct 7, 2024
39 of 40 checks passed
@aannabe aannabe deleted the nxs_j3_soc branch October 7, 2024 17:52
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.

4 participants