mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Add error message when number of delayed fission spectra doesn't match number of
precursor groups.
This commit is contained in:
parent
348685057a
commit
e2ff3a8357
1 changed files with 5 additions and 1 deletions
|
|
@ -413,7 +413,11 @@ def _get_fission_products_endf(ev):
|
|||
file_obj = StringIO(ev.section[5, 455])
|
||||
items = get_head_record(file_obj)
|
||||
nk = items[4]
|
||||
assert nk == len(decay_constants)
|
||||
if nk != len(decay_constants):
|
||||
raise ValueError(
|
||||
'Number of delayed neutron fission spectra ({}) does not '
|
||||
'match number of delayed neutron precursors ({}).'.format(
|
||||
nk, len(decay_constants)))
|
||||
for i in range(nk):
|
||||
params, applicability = get_tab1_record(file_obj)
|
||||
dist = UncorrelatedAngleEnergy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue