mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
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:
parent
3b8d9758bf
commit
15c2bc2de3
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue