Fix MPI depletion hang (#3910)

This commit is contained in:
Md. Ariful Islam 2026-04-02 12:30:09 -04:00 committed by GitHub
parent 8223099ed9
commit 97d9a839c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -201,7 +201,7 @@ class TransportOperator(ABC):
Returns
-------
volume : dict of str to float
Volumes corresponding to materials in burn_list
Volumes corresponding to materials in full_burn_list
nuc_list : list of str
A list of all nuclide names. Used for sorting the simulation.
burn_list : list of int
@ -210,7 +210,7 @@ class TransportOperator(ABC):
full_burn_list : list of int
All burnable materials in the geometry.
name_list : list of str
Material names corresponding to materials in burn_list
Material names corresponding to materials in full_burn_list
"""
def finalize(self):

View file

@ -154,14 +154,14 @@ class StepResult:
full_burn_list : list of str
List of all burnable material IDs
name_list : list of str, optional
Material names corresponding to materials in burn_list
Material names corresponding to materials in full_burn_list
"""
self.volume = copy.deepcopy(volume)
self.index_nuc = {nuc: i for i, nuc in enumerate(nuc_list)}
self.index_mat = {mat: i for i, mat in enumerate(burn_list)}
self.mat_to_hdf5_ind = {mat: i for i, mat in enumerate(full_burn_list)}
self.mat_to_name = dict(zip(burn_list, name_list)) if name_list is not None else {}
self.mat_to_name = dict(zip(full_burn_list, name_list)) if name_list is not None else {}
# Create storage array
self.data = np.zeros((self.n_mat, self.n_nuc))