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