Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions openmc/deplete/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1173,10 +1173,11 @@ def reduce(self, initial_isotopes, level=None):
if rx.target in all_isotopes:
new_nuclide.add_reaction(*rx)
elif rx.type == "fission":
new_yields = new_nuclide.yield_data = (
previous.yield_data.restrict_products(name_sort))
if new_yields is not None:
new_nuclide.add_reaction(*rx)
if previous.yield_data is not None:
new_yields = new_nuclide.yield_data = (
previous.yield_data.restrict_products(name_sort))
if new_yields is not None:
new_nuclide.add_reaction(*rx)
# Maintain total destruction rates but set no target
else:
new_nuclide.add_reaction(rx.type, None, rx.Q, rx.branching_ratio)
Expand Down