Fortran#

API#

module ciaaw__api

API

\(\)
function get_version() fptr

Get the version

fptr: character(len=:), pointer

Fortran pointer to a string indicating the version..

\(\)
function get_saw(s, abridged, uncertainty) res

Get the standard atomic weight for the element s.

Returns NaN if the provided element is incorrect or -1 if the element does not have a SAW.

s: character(len=*), intent(in)

Element symbol.

abridged: logical, intent(in), optional

Flag for returning the abridged standard atomic weight. Default to TRUE.

uncertainty: logical, intent(in), optional

Flag for returning the uncertainty instead of the value. Default to FALSE.

res: real(dp)

None

\(\)
function get_ice(s, A, uncertainty) res

Get the isotopic composition of the element s for the mass number A.

Returns NaN if the provided element or the mass number A are incorrect or -1 if the element does not have an ICE.

s: character(len=*), intent(in)

Element symbol.

A: integer(int32), intent(in)

Mass number.

uncertainty: logical, intent(in), optional

Flag for returning the uncertainty instead of the value. Default to FALSE.

res: real(dp)

None

\(\)
function get_naw(s, A, uncertainty) res

Get the atomic weight of the nuclide s for the mass number A.

Returns NaN if the provided element or A are incorrect or -1 if the element does not have an NAW.

s: character(len=*), intent(in)

Element symbol.

A: integer(int32), intent(in)

Mass number.

uncertainty: logical, intent(in), optional

Flag for returning the uncertainty instead of the value. Default to FALSE.

res: real(dp)

None

\(\)