Skip to content

Fix hybridrep complex#4939

Merged
prckent merged 3 commits into
QMCPACK:developfrom
ye-luo:fix-hybridrep-complex
Mar 8, 2024
Merged

Fix hybridrep complex#4939
prckent merged 3 commits into
QMCPACK:developfrom
ye-luo:fix-hybridrep-complex

Conversation

@ye-luo

@ye-luo ye-luo commented Mar 7, 2024

Copy link
Copy Markdown
Contributor

Proposed changes

Noticed a missing safety check in the complex code path of hybridrep.

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?

Polaris

Checklist

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

@prckent

prckent commented Mar 7, 2024

Copy link
Copy Markdown
Contributor

Test this please

@prckent prckent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Surely a fix to both complex and real? Or is the real path protected elsewhere? If so, where/how?

const ValueVector& psiinv,
std::vector<ValueType>& ratios) override
{
if (VP.isOnSphere() && HYBRIDBASE::is_batched_safe(VP))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The real case has the safety check already.

@prckent prckent merged commit ab366c0 into QMCPACK:develop Mar 8, 2024
@ye-luo ye-luo deleted the fix-hybridrep-complex branch June 29, 2024 17:22
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.

2 participants