When expanding natural elements, make sure order is consistent

This commit is contained in:
Paul Romano 2016-06-07 09:17:21 -05:00
parent 689d7b3167
commit e7a9a1e236

View file

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