Skip to content

random ray source update loop#90

Open
shimwell wants to merge 1 commit intodevelopfrom
precompute-mat-offsets
Open

random ray source update loop#90
shimwell wants to merge 1 commit intodevelopfrom
precompute-mat-offsets

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

Might be of interest to @jtramm

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