Skip to content

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
@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.

3 participants