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.
This commit is contained in:
Andrew Johnson 2019-07-18 12:39:05 -05:00
parent 3b8d9758bf
commit 15c2bc2de3
No known key found for this signature in database
GPG key ID: 253418E91B7F6FEB

View file

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