mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Add empty fission yields to tests.TestChain
This object is used in unit testing the depletion schemes, where the depletion matrix is pre-defined and there is no need for fission yields. However, the depletion interface expects the chain to have a fission_yields attribute.
This commit is contained in:
parent
c1d66bc022
commit
6556abc2a8
1 changed files with 7 additions and 0 deletions
|
|
@ -7,6 +7,13 @@ from openmc.deplete.abc import TransportOperator, OperatorResult
|
|||
|
||||
|
||||
class TestChain(object):
|
||||
"""Empty chain to assist with unit testing depletion routines
|
||||
|
||||
Only really provides the form_matrix function, but acts like
|
||||
a real Chain
|
||||
"""
|
||||
|
||||
fission_yields = [None]
|
||||
|
||||
@staticmethod
|
||||
def get_thermal_fission_yields():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue