mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
map_no_kargs
This commit is contained in:
parent
e6a490ac9c
commit
5f5c0ed7a7
1 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ USE_MULTIPROCESSING = True
|
|||
NUM_PROCESSES = None
|
||||
|
||||
|
||||
def deplete(func, chain, x, rates, dt, matrix_func=None, **func_args):
|
||||
def deplete(func, chain, x, rates, dt, matrix_func=None, *func_args):
|
||||
"""Deplete materials using given reaction rates for a specified time
|
||||
|
||||
Parameters
|
||||
|
|
@ -60,7 +60,7 @@ def deplete(func, chain, x, rates, dt, matrix_func=None, **func_args):
|
|||
matrices = map(chain.form_matrix, rates, fission_yields)
|
||||
else:
|
||||
matrices = map(matrix_func, repeat(chain), rates, fission_yields,
|
||||
**func_args)
|
||||
*func_args)
|
||||
|
||||
inputs = zip(matrices, x, repeat(dt))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue