Get electronegativity for a given atomic number
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | num |
Atomic number |
Electronegativity
elemental function get_electronegativity_num(num) result(en) !DEC$ ATTRIBUTES DLLEXPORT :: get_electronegativity_num !> Atomic number integer, intent(in) :: num !> Electronegativity real(wp) :: en if (num > 0 .and. num <= size(pauling_en)) then en = pauling_en(num) else en = 0.0_wp end if end function get_electronegativity_num