Skip to content
Open
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
13 changes: 7 additions & 6 deletions openmc/deplete/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ def setval(i, j, val):

# Allow for total annihilation for debug purposes
if branch_val != 0.0:
if target is not None:
if target is not None and 'sf' not in decay_type:
k = self.nuclide_dict[target]
setval(k, i, branch_val)

Expand Down Expand Up @@ -696,11 +696,12 @@ def setval(i, j, val):

# Determine light nuclide production, e.g., (n,d) should
# produce H2
light_nucs = REACTIONS[r_type].secondaries
for light_nuc in light_nucs:
k = self.nuclide_dict.get(light_nuc)
if k is not None:
setval(k, i, path_rate * br)
if path_rate != 0.0:
light_nucs = REACTIONS[r_type].secondaries
for light_nuc in light_nucs:
k = self.nuclide_dict.get(light_nuc)
if k is not None:
setval(k, i, path_rate * br)

else:
for product, y in fission_yields[nuc.name].items():
Expand Down
Loading