mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Fix MPI depletion hang (#3910)
This commit is contained in:
parent
8223099ed9
commit
97d9a839c2
2 changed files with 4 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue