Skip to content

Conversation

@shimwell
Copy link
Owner

@shimwell shimwell commented Feb 4, 2026

Description

Precompute material array offsets outside inner loop in update_single_neutron_source().

Before: material * negroups_ computed repeatedly per group iteration
After: Computed once before loops as material_offset and scatter_offset

Fixes # (issue)

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 15) on any C++ source files (if applicable)

@shimwell shimwell changed the title not recomputing mat in loop random ray source update loop Feb 4, 2026
@shimwell shimwell marked this pull request as ready for review February 4, 2026 14:18
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.

1 participant