Fortran#

API#

module ciaaw__api

API

\(\)
function get_version() fptr

Get the version

fptr: character(len=:), pointer

\(\)
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(kind=dp)

\(\)
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(kind=int32), intent(in)

Mass number.

uncertainty: logical, intent(in), optional

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

res: real(kind=dp)

\(\)
function get_nice(s) res

Get the number of isotopes in ICE of the element s.

Returns -1 if the provided element is incorrect.

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

Element symbol.

res: integer(kind=int32)

\(\)
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(kind=int32), intent(in)

Mass number.

uncertainty: logical, intent(in), optional

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

res: real(kind=dp)

\(\)
function get_nnaw(s) res

Get the number of nuclides in NAW of the element s.

Returns -1 if the provided element is incorrect.

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

Element symbol.

res: integer(kind=int32)

\(\)

C Bindings#

module ciaaw__capi

C API. See [specs](../page/specs/capi.html)

\(\)
function capi_get_version() cptr

C API for [[ciaaw__api(module):get_version(function)]].

cptr: type(c_ptr)

\(\)
function capi_get_saw(s, n, abridged, uncertainty) res

C API for [[ciaaw__api(module):get_saw(function)]].

s: type(c_ptr), value, intent(in)

Symbol.

n: integer(kind=c_int), value, intent(in)

Size of the symbol string.

abridged: logical(kind=c_bool), value, intent(in)

Flag for setting if abridged value is desired.

uncertainty: logical(kind=c_bool), value, intent(in)

Flag for setting if the uncertainty is desired instead of the value.

res: real(kind=c_double)

\(\)
function capi_get_ice(s, n, A, uncertainty) res

C API for [[ciaaw__api(module):get_ice(function)]]

s: type(c_ptr), value, intent(in)

Element symbol.

n: integer(kind=c_int), value, intent(in)

Size of the symbol string.

A: integer(kind=c_int), value, intent(in)

Mass number.

uncertainty: logical(kind=c_bool), value, intent(in)

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

res: real(kind=c_double)

\(\)
function capi_get_nice(s, n) res

C API for [[ciaaw__api(module):get_nice(function)]]

s: type(c_ptr), value, intent(in)

Element symbol.

n: integer(kind=c_int), value, intent(in)

Size of the symbol string.

res: integer(kind=c_int)

\(\)
function capi_get_naw(s, n, A, uncertainty) res

C API for [[ciaaw__api(module):get_naw(function)]]

s: type(c_ptr), value, intent(in)

Element symbol.

n: integer(kind=c_int), value, intent(in)

Size of the symbol string.

A: integer(kind=c_int), value, intent(in)

Mass number.

uncertainty: logical(kind=c_bool), value, intent(in)

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

res: real(kind=c_double)

\(\)
function capi_get_nnaw(s, n) res

C API for [[ciaaw__api(module):get_nnaw(function)]]

s: type(c_ptr), value, intent(in)

Element symbol.

n: integer(kind=c_int), value, intent(in)

Size of the symbol string.

res: integer(kind=c_int)

\(\)