diff --git a/openmc/deplete/helpers.py b/openmc/deplete/helpers.py index 8e87c532ab..9e3e379d58 100644 --- a/openmc/deplete/helpers.py +++ b/openmc/deplete/helpers.py @@ -205,7 +205,7 @@ class EnergyScoreHelper(EnergyHelper): the number of MPI processes """ super().reset() - if not comm.rank: + if comm.rank == 0: self._energy = self._tally.results[0, 0, 1] # ------------------------------------ diff --git a/openmc/deplete/operator.py b/openmc/deplete/operator.py index 5ea1f120de..743615bbe9 100644 --- a/openmc/deplete/operator.py +++ b/openmc/deplete/operator.py @@ -84,8 +84,7 @@ class Operator(TransportOperator): Indicator for computing system energy. ``"energy-deposition"`` will compute with a single energy deposition tally, taking fission energy release data and heating into consideration. ``"fission-q"`` will - use the fission Q values from the depletion chain, not taking - heating into consideration. + use the fission Q values from the depletion chain fission_q : dict, optional Dictionary of nuclides and their fission Q values [eV]. If not given, values will be pulled from the ``chain_file``. Only applicable @@ -261,8 +260,6 @@ class Operator(TransportOperator): # Update status self.number.set_density(vec) - time_start = time.time() - # Update material compositions and tally nuclides self._update_materials() nuclides = self._get_tally_nuclides() @@ -274,8 +271,6 @@ class Operator(TransportOperator): openmc.lib.reset() openmc.lib.run() - time_openmc = time.time() - # Extract results op_result = self._unpack_tallies_and_normalize(power)