From 15c2bc2de3d51715cb073016c5d8c58daebfe82a Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Thu, 18 Jul 2019 12:39:05 -0500 Subject: [PATCH] Use correct material index in operator unpacking Fix a bug introduced where the material iteration index, for i, mat in enumerate(self.local_mats): was used for the global __material__ index. The value of i was used to extract reaction rate tallies for that material. This causes an issue with multiple operators on MPI processes, where an Operator`s material i does not equal the i-th burnable material. --- openmc/deplete/operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/deplete/operator.py b/openmc/deplete/operator.py index 73fad50932..a3c7c2ba8f 100644 --- a/openmc/deplete/operator.py +++ b/openmc/deplete/operator.py @@ -551,7 +551,7 @@ class Operator(TransportOperator): number[i_nuc_results] = self.number[mat, nuc] tally_rates = self._rate_helper.get_material_rates( - i, nuc_ind, react_ind) + slab, nuc_ind, react_ind) # Accumulate energy from fission energy += self._energy_helper.get_fission_energy(