You are not logged in. Click here to log in.

Application Lifecycle Management

Search In Project

Search inClear

@Unit #17051/HEAD / v10
Tags:  not added yet

@Unit

A @Unit annotation binds a physical unit to a component field that is tagged as @In or @Out. Units are usually attached to scalars and arrays fields. This information allows the frameworks to perform unit checking/validation and unit conversion. There are several open source unit conversion libraries available that could be used to perform unit conversion.

Synopsis

@Unit(<String>)
arg - the physical unit of the field

Type

Documentation annotation, execution support

Scope

Field

Example


!  @Description("CSMLite Plant Component")
...
!  @Execute 
SUBROUTINE Plant
    
    USE, INTRINSIC :: ISO_C_BINDING
    IMPLICIT NONE

!  @Description("Daily maximum temperature in degrees Centigrade")
!  @Unit("Centigrade")
!  @In 
   REAL(C_FLOAT) :: TMAX
!  @Description("Day of Year")
!  @In
   INTEGER(C_INT) :: DOY
!  @Description("Dynamic Control Variable")
!  @In
   CHARACTER(kind = C_CHAR, len = 5) : DYN
...
!  @Description("Leaf Area Index")
!  @Out
   REAL(C_FLOAT) :: LAI
...