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

Magnetization Density Estimator #4531

Merged
merged 39 commits into from
Apr 10, 2023
Merged

Conversation

rcclay
Copy link
Contributor

@rcclay rcclay commented Mar 27, 2023

Please review the developer documentation
on the wiki of this project that contains help and requirements.

Proposed changes

This implements a magnetization density estimator for non-collinear spin calculations. The formalism and use is already documented in the manual. Compatible only with the new estimator framework and batched drivers.

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

  • New feature
  • Testing changes (e.g. new unit/integration/performance tests)

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

Intel Xeon, RHEL7

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
  • Yes. This PR adds tests to cover any new code, or to catch a bug that is being fixed
  • Yes. Documentation has been added (if appropriate)

src/Estimators/MagnetizationDensityInput.h Outdated Show resolved Hide resolved
src/Estimators/MagnetizationDensity.h Outdated Show resolved Hide resolved
src/Estimators/MagnetizationDensity.h Outdated Show resolved Hide resolved
psi0=eval_det(R,spins,kup,kdn)
ratios=np.zeros(ngrid)

sxgrid=np.zeros(ngrid,)
Copy link
Contributor

Choose a reason for hiding this comment

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

Extraneous comma?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! I'll double check that script.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Took a while, but fixed. Reference value generation runs.

@prckent
Copy link
Contributor

prckent commented Apr 10, 2023

Status?

@rcclay
Copy link
Contributor Author

rcclay commented Apr 10, 2023

Just need someone to approve it.

@markdewing
Copy link
Contributor

Test this please

@prckent prckent enabled auto-merge April 10, 2023 21:59
@prckent prckent merged commit d28efa7 into QMCPACK:develop Apr 10, 2023
@rcclay rcclay deleted the new_mag_density branch April 11, 2023 15:16
@prckent prckent mentioned this pull request Aug 18, 2023
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