Changeset 672

Show
Ignore:
Timestamp:
10/11/2007 11:25:36 AM (15 months ago)
Author:
otter
Message:

Added annotation(Dymola_absoluteValue=true)
for the temperature types in NonSIunits, in order that
unit checking is possible (the unit checker needs to know
for a unit that has an offset, whether it is used as absolute
or as a relative number)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Modelica/trunk/Modelica/SIunits.mo

    r664 r672  
    383383       
    384384      type Temperature_degC = Real (final quantity="ThermodynamicTemperature", 
    385             final unit="degC"); 
     385            final unit="degC") annotation(__Dymola_absoluteValue=true); 
    386386      type Temperature_degF = Real (final quantity="ThermodynamicTemperature", 
    387             final unit="degF"); 
     387            final unit="degF")  annotation(__Dymola_absoluteValue=true); 
    388388      type Temperature_degRk = Real (final quantity="ThermodynamicTemperature", 
    389             final unit="degRk"); 
     389            final unit="degRk")  annotation(__Dymola_absoluteValue=true); 
    390390      type Angle_deg = Real (final quantity="Angle", final unit="deg"); 
    391391      type AngularVelocity_rpm = Real (final quantity="AngularVelocity", final unit 
     
    980980      final unit="K", 
    981981      min = 0, 
    982       displayUnit="degC") annotation(__Dymola_absoluteValue=true); 
     982      displayUnit="degC")  
     983    "Absolute temperature (use type TemperatureDifference for relative temperatures)" 
     984                                                                                                        annotation(__Dymola_absoluteValue=true); 
    983985  type Temp_K = ThermodynamicTemperature; 
    984986  type Temperature = ThermodynamicTemperature;