Convert element symbol to atomic number
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | symbol |
Element symbol |
Atomic number
elemental function to_number(symbol) result(number) !> Element symbol character(len=*), intent(in) :: symbol !> Atomic number integer :: number call symbol_to_number(number, symbol) end function to_number