mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
commit
a01e37b503
2 changed files with 3 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ import os
|
|||
import re
|
||||
from warnings import warn
|
||||
|
||||
|
||||
# Isotopic abundances from Meija J, Coplen T B, et al, "Isotopic compositions
|
||||
# of the elements 2013 (IUPAC Technical Report)", Pure. Appl. Chem. 88 (3),
|
||||
# pp. 293-306 (2013). The "representative isotopic abundance" values from
|
||||
|
|
|
|||
|
|
@ -530,8 +530,8 @@ class Material(IDManagerMixin):
|
|||
# Allow for element identifier to be given as a symbol or name
|
||||
if len(element)>2:
|
||||
el = element.lower()
|
||||
element = openmc.data.ELEMENT_SYMBOL.get(el,"empty")
|
||||
if element == "empty":
|
||||
element = openmc.data.ELEMENT_SYMBOL.get(el)
|
||||
if element is None:
|
||||
msg = 'Element name "{}" not recognised'.format(el)
|
||||
raise ValueError(msg)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue