Skip to content

fury_uom_converter ​

FURY class definition of unit converter.

Source: src/lib/fury_uom_converter.F90

Contents ​

Derived Types ​

uom_converter ​

A generic user-supplied uom_symbol converter.

Inheritance

Attributes: abstract

Type-Bound Procedures

NameAttributesDescription
convert_float128nopassThe conversion formulas for float128 magnitudes.
convert_float64nopassThe conversion formulas for float64 magnitudes.
convert_float32nopassThe conversion formulas for float32 magnitudes.
assign_converterpass(lhs)converter = converter assignment.
convertThe conversion formulas. Generic: convert_float64, convert_float32
assignment(=)Overloading = assignment. Generic: assign_converter

uom_converter_box ​

Non-polymorphic holder of a uom_converter.

A pure function result shall not have a polymorphic allocatable ultimate component (F2018 C1585): a type holding the converter through an allocatable box has the box as ultimate component, thus its objects can be pure function results.

Components

NameTypeAttributesDescription
converterclass(uom_converter)allocatableThe converter.

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