Skip to content

fury_system_si64 ​

FURY definition of International System of Units with float64 kind. FURY implementation of International System of Units with generic kind.

Source: src/lib/fury_system_si64.F90

Dependencies

Contents ​

Derived Types ​

system_si ​

International System of Units.

Inheritance

Extends: system_abstract

Components

NameTypeAttributesDescription
acronymcharacter(len=:)allocatableUnits system acronym, e.g. "SI" for the International System.
constantstype(qreal)allocatableDefined constants.
constants_numberinteger(kind=I_P)Number of constants.
unitstype(uom)allocatableDefined units.
units_numberinteger(kind=I_P)Number of units.
prefixestype(uom_reference)allocatablePrefixes.
prefixes_numberinteger(kind=I_P)Number of prefixes.

Type-Bound Procedures

NameAttributesDescription
add_constantAdd a new constant. Generic: add_constant_qreal
add_prefixAdd a new prefix. Generic: add_prefix_string, add_prefix_uom_reference
add_unitAdd a new unit. Generic: add_unit_string, add_unit_uom
constpass(self)Return an instance of the queried constant (if defined).
freepass(self)Free the units system.
list_constantspass(self)Return the list of defined constants.
list_prefixespass(self)Return the list of defined prefixes.
list_unitspass(self)Return the list of defined units.
unitpass(self)Return an instance of the queried unit (if defined).
qunitReturn an instance of quantity with the queried unit. Generic: qunit_qreal
initializepass(self)Initialize the units system.

system_si%const ​

Return an instance of the queried constant (if defined).

Returns: type(qreal)

fortran
function const(self, c) result(const_)

Arguments

NameTypeIntentAttributesDescription
selfclass(system_abstract)inThe system.
ccharacter(len=*)inConstant name.

Call graph

system_si%free ​

Free the units system.

Attributes: elemental

fortran
subroutine free(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(system_abstract)inoutThe system.

system_si%list_constants ​

Return the list defined constants.

Returns: character(len=:)

fortran
function list_constants(self, with_dimensions, with_aliases, with_name, compact_reals, prefix_string) result(raw)

Arguments

NameTypeIntentAttributesDescription
selfclass(system_abstract)inThe system.
with_dimensionslogicalinoptionalFlag to activate dimensions printing.
with_aliaseslogicalinoptionalFlag to activate aliases printing.
with_namelogicalinoptionalFlag to activate name printing.
compact_realslogicalinoptionalFlag to activate real numbers compacting.
prefix_stringcharacter(len=*)inoptionalPrefix string.

Call graph

system_si%list_prefixes ​

Return the list defined prefixes.

Returns: character(len=:)

fortran
function list_prefixes(self, with_aliases, compact_reals, prefix_string) result(raw)

Arguments

NameTypeIntentAttributesDescription
selfclass(system_abstract)inThe system.
with_aliaseslogicalinoptionalFlag to activate alias printing.
compact_realslogicalinoptionalFlag to activate real numbers compacting.
prefix_stringcharacter(len=*)inoptionalPrefix string.

Call graph

system_si%list_units ​

Return the list defined units.

Returns: character(len=:)

fortran
function list_units(self, with_dimensions, with_aliases, protect_aliases, with_name, compact_reals, prefix_string) result(raw)

Arguments

NameTypeIntentAttributesDescription
selfclass(system_abstract)inThe system.
with_dimensionslogicalinoptionalFlag to activate dimensions printing.
with_aliaseslogicalinoptionalFlag to activate aliases printing.
protect_aliaseslogicalinoptionalFlag to activate aliases printing in protected mode.
with_namelogicalinoptionalFlag to activate name printing.
compact_realslogicalinoptionalFlag to activate real numbers compacting.
prefix_stringcharacter(len=*)inoptionalPrefix string.

Call graph

system_si%unit ​

Return an instance of the queried unit (if defined).

The query matches the unit name or a synonym of its main symbol, that is an alias with the same exponent, without multiplicative factor, additive offset or user-supplied converter (e.g. "meter" of "m = metre = meter"). The units obtained prefixing the system units by the system prefixes are queried too (e.g. "km", "kilometre"). The unit returned is undefined if the query matches no unit.

Returns: type(uom)

fortran
function unit(self, u) result(unit_)

Arguments

NameTypeIntentAttributesDescription
selfclass(system_abstract)inThe system.
ucharacter(len=*)inUnit name or symbol.

Call graph

Subroutines ​

initialize ​

Initialize the units system.

@todo Load from file.

fortran
subroutine initialize(self, acronym)

Arguments

NameTypeIntentAttributesDescription
selfclass(system_si)inoutThe units system.
acronymcharacter(len=*)inoptionalUnits system acronym, e.g. "SI" for the International System.

Call graph

Released under GPL v3, BSD 2-Clause, BSD 3-Clause or MIT, at your choice.