mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
When expanding natural elements, make sure order is consistent
This commit is contained in:
parent
689d7b3167
commit
e7a9a1e236
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ class Element(object):
|
|||
"""
|
||||
|
||||
isotopes = []
|
||||
for isotope, abundance in natural_abundance.items():
|
||||
for isotope, abundance in sorted(natural_abundance.items()):
|
||||
if isotope.startswith(self.name + '-'):
|
||||
nuc = openmc.Nuclide(isotope, self.xs)
|
||||
isotopes.append((nuc, abundance))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue