to_number Function

public elemental function to_number(symbol) result(number)

Convert element symbol to atomic number

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: symbol

Element symbol

Return Value integer

Atomic number


Source Code

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