mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Merge pull request #1642 from paulromano/chain-neutron-fix
Small fix for depletion chain generation
This commit is contained in:
commit
baaae16bb4
1 changed files with 3 additions and 3 deletions
|
|
@ -147,9 +147,9 @@ def replace_missing(product, decay_data):
|
|||
Z, A, state = openmc.data.zam(product)
|
||||
symbol = openmc.data.ATOMIC_SYMBOL[Z]
|
||||
|
||||
# Replace neutron with proton
|
||||
if Z == 0 and A == 1:
|
||||
return 'H1'
|
||||
# Replace neutron with nothing
|
||||
if Z == 0:
|
||||
return None
|
||||
|
||||
# First check if ground state is available
|
||||
if state:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue