Skip to content

Fix mergeMctals with many input files#20

Open
yrasool wants to merge 1 commit into
lanl:mainfrom
yrasool:fix-mergemctals-many-inputs
Open

Fix mergeMctals with many input files#20
yrasool wants to merge 1 commit into
lanl:mainfrom
yrasool:fix-mergemctals-many-inputs

Conversation

@yrasool

@yrasool yrasool commented Jun 22, 2026

Copy link
Copy Markdown

Fixes #19.

The merge code now reserves space for the input MCTAL vector before inserting additional files and constructs entries in place. This keeps references inside Mctal objects stable when many inputs are merged.

A regression test covers merging 130 input files and reading tallies from the merged result.

Validation:

  • git diff --cached --check
  • Compiled the new regression test as an object with g++

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.

mergemctals throws exception when merging more than 129 tally files

1 participant