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

Fix of Single_crystal reuse optimization #1726

Merged
merged 2 commits into from
Oct 23, 2024
Merged

Conversation

mads-bertelsen
Copy link
Contributor

Fixed issue in Single_crystal where neutrons with similar initial velocity vector would reuse wrong data from previous neutron. Allocated a seperate data structure for the initial search for reflections which avoids this issue. Fixed a test to be sensitive to such an issue in the future.

Suggestions on how to make this GPU compatible have been made, so this PR should not be merged yet.

…ocity vector would reuse wrong data from previous neutron. Allocated a seperate data structure for the initial search for reflections which avoids this issue. Fixed a test to be sensitive to such an issue in the future.
@willend
Copy link
Contributor

willend commented Oct 8, 2024

@mads-bertelsen thanks. Actual feedback to this might not arrive until ~ November since busy with other stuff. :-)

@mads-bertelsen
Copy link
Contributor Author

No worries! Now the issue is visible and a fix available to those who need it quick.

@willend
Copy link
Contributor

willend commented Oct 23, 2024

Merging this solution for now - deferring GPU uservars solution until later, as also mentioned in #1725

@willend willend merged commit b0ac4dc into main Oct 23, 2024
32 checks passed
@willend willend deleted the single_crystal_optimization_fix branch February 3, 2025 08:14
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