Public Attributes | |
| real(dp) | factor |
| Scale factor | |
| integer | nelems |
| Number of unit elements | |
| character(token), dimension(:), pointer | name |
| Names of unit elements | |
| character(token) | offset |
| Offset string (e.g., "@273.15") | |
| real(dp), dimension(:), pointer | power |
| Powers (exponents) of unit elements | |
Derived type for representing physical units
A physical unit is represented as a product of named unit elements with powers (exponents), plus an optional scaling factor and offset. For example, "m/s2" would have name=["m","s"], power=[1,-2], factor=1.
Definition at line 79 of file dc_units.f90.
| real(dp) dc_units::units::factor |
Scale factor
Definition at line 80 of file dc_units.f90.
| character(token), dimension(:), pointer dc_units::units::name |
Names of unit elements
Definition at line 82 of file dc_units.f90.
| integer dc_units::units::nelems |
Number of unit elements
Definition at line 81 of file dc_units.f90.
| character(token) dc_units::units::offset |
Offset string (e.g., "@273.15")
Definition at line 83 of file dc_units.f90.
| real(dp), dimension(:), pointer dc_units::units::power |
Powers (exponents) of unit elements
Definition at line 84 of file dc_units.f90.