Skip to content

Make sure Chain.reduce preserves decay source information - #2283

Merged
eepeterson merged 1 commit into
openmc-dev:developfrom
paulromano:chain-reduce-sources-bugfix
Oct 29, 2022
Merged

eepeterson merged 1 commit into
openmc-dev:developfrom
paulromano:chain-reduce-sources-bugfix

Conversation

@paulromano

Copy link
Copy Markdown
Contributor

I just noticed that if you have a deplete.Chain with information in the new sources attribute, that information is lost if you call Chain.reduce(...). This PR fixes that and updates a test with a corresponding check on the sources after calling reduce.

@paulromano
paulromano requested a review from eepeterson October 27, 2022 13:53
@paulromano
paulromano removed the request for review from drewejohnson October 27, 2022 13:53

@eepeterson eepeterson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simple enough thanks for the fix @paulromano!

@eepeterson
eepeterson merged commit b9c1eb3 into openmc-dev:develop Oct 29, 2022
@paulromano
paulromano deleted the chain-reduce-sources-bugfix branch October 29, 2022 14:18
apingegno pushed a commit to apingegno/openmc that referenced this pull request May 7, 2026
…es-bugfix

Make sure Chain.reduce preserves decay source information
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