FURY definition of International System of Units with float128 kind.
FURY implementation of International System of Units with generic kind.
International System of Units.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | public, | allocatable | :: | acronym | Units system acronym, e.g. "SI" for the International System. |
||
| type(qreal), | public, | allocatable | :: | constants(:) | Defined constants. |
||
| integer(kind=I_P), | public | :: | constants_number | = | 0_I_P | Number of constants. |
|
| type(uom), | public, | allocatable | :: | units(:) | Defined units. |
||
| integer(kind=I_P), | public | :: | units_number | = | 0_I_P | Number of units. |
|
| type(uom_reference), | public, | allocatable | :: | prefixes(:) | Prefixes. |
||
| integer(kind=I_P), | public | :: | prefixes_number | = | 0_I_P | Number of prefixes. |
| generic, public :: add_constant => add_constant_qreal | Add a new constant. |
| generic, public :: add_prefix => add_prefix_string, add_prefix_uom_reference | Add a new prefix. |
| generic, public :: add_unit => add_unit_string, add_unit_uom | Add a new unit. |
| procedure, public, pass(self) :: const | Return an instance of the queried constant (if defined). |
| procedure, public, pass(self) :: free | Free the units system. |
| procedure, public, pass(self) :: list_constants | Return the list of defined constants. |
| procedure, public, pass(self) :: list_prefixes | Return the list of defined prefixes. |
| procedure, public, pass(self) :: list_units | Return the list of defined units. |
| procedure, public, pass(self) :: unit | Return an instance of the queried unit (if defined). |
| generic, public :: qunit => qunit_qreal | Return an instance of quantity with the queried unit. |
| procedure, public, pass(self) :: initialize | Initialize the units system. |
Initialize the units system.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(system_si), | intent(inout) | :: | self | The units system. |
||
| character(len=*), | intent(in), | optional | :: | acronym | Units system acronym, e.g. "SI" for the International System. |