diff --git a/openmc/deplete/abc.py b/openmc/deplete/abc.py index df30579e57..457c51a8ae 100644 --- a/openmc/deplete/abc.py +++ b/openmc/deplete/abc.py @@ -719,6 +719,9 @@ class Integrator(ABC): elif unit.lower() == 'mwd/kg': watt_days_per_kg = 1e6*timestep kilograms = 1e-3*operator.heavy_metal + if rate == 0.0: + raise ValueError("Cannot specify a timestep in [MWd/kg] when" + " the power is zero.") days = watt_days_per_kg * kilograms / rate seconds.append(days*_SECONDS_PER_DAY) else: diff --git a/openmc/deplete/stepresult.py b/openmc/deplete/stepresult.py index bfd1654816..6f30e934d9 100644 --- a/openmc/deplete/stepresult.py +++ b/openmc/deplete/stepresult.py @@ -20,7 +20,7 @@ __all__ = ["StepResult"] class StepResult: - """Output of a depletion run + """Result of a single depletion timestep Attributes ----------