mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
limited precision of isotopes of expanded elements to 14 digits
This commit is contained in:
parent
163f153ab6
commit
bfc06a7341
1 changed files with 2 additions and 1 deletions
|
|
@ -253,6 +253,7 @@ class Element(object):
|
|||
for nuclide, abundance in abundances.items():
|
||||
nuc = openmc.Nuclide(nuclide)
|
||||
nuc.scattering = self.scattering
|
||||
isotopes.append((nuc, percent*abundance, percent_type))
|
||||
pct = float('{:.14}'.format(percent*abundance))
|
||||
isotopes.append((nuc, pct, percent_type))
|
||||
|
||||
return isotopes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue