operator.py -> coupled_operator.py

This commit is contained in:
yardasol 2022-07-30 16:55:36 -05:00
parent 773757246b
commit 467ae6b9fb
2 changed files with 8 additions and 1 deletions

View file

@ -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 *

View file

@ -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 " \