mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
operator.py -> coupled_operator.py
This commit is contained in:
parent
773757246b
commit
467ae6b9fb
2 changed files with 8 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ A depletion front-end tool.
|
|||
from .nuclide import *
|
||||
from .chain import *
|
||||
from .openmc_operator import *
|
||||
from .operator import *
|
||||
from .coupled_operator import *
|
||||
from .independent_operator import *
|
||||
from .microxs import *
|
||||
from .reaction_rates import *
|
||||
|
|
|
|||
|
|
@ -191,6 +191,13 @@ class CoupledOperator(OpenMCOperator):
|
|||
fission_yield_mode="constant", fission_yield_opts=None,
|
||||
reaction_rate_mode="direct", reaction_rate_opts=None,
|
||||
reduce_chain=False, reduce_chain_level=None):
|
||||
# warn of name change
|
||||
warn(
|
||||
"The Operator(...) class has been renamed and will "
|
||||
"be removed in a future version of OpenMC. Use "
|
||||
"CoupledOperator(...) instead.",
|
||||
FutureWarning
|
||||
)
|
||||
# check for old call to constructor
|
||||
if isinstance(model, openmc.Geometry):
|
||||
msg = "As of version 0.13.0 openmc.deplete.CoupledOperator " \
|
||||
Loading…
Add table
Add a link
Reference in a new issue