Changeset 487 for trunk


Ignore:
Timestamp:
Jul 15, 2006 7:38:43 PM (18 years ago)
Author:
dkearney
Message:

added moles (mol), hertz (Hz), becquerel (Bq)
all have been added with metric extensions which take precedence
over other units when parsing. ex. mmol is milli-moles not meter-moles

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/units.tcl

    r402 r487  
    484484Rappture::Units::define s -type seconds -metric yes
    485485
    486 #Rappture::Units::define mol -type misc -metric yes
     486Rappture::Units::define mol -type misc -metric yes
     487Rappture::Units::define Hz -type misc -metric yes
     488Rappture::Units::define Bq -type misc -metric yes
    487489
    488490Rappture::Units::define deg -type angle -metric no
  • trunk/src/core/RpUnits.cc

    r478 r487  
    19271927
    19281928    RpUnits* mole  = RpUnits::define("mol",  NULL, RP_TYPE_MISC);
     1929    RpUnits* hertz = RpUnits::define("Hz",  NULL, RP_TYPE_MISC);
     1930    RpUnits* becquerel = RpUnits::define("Bq",  NULL, RP_TYPE_MISC);
    19291931
    19301932    RpUnits::makeMetric(mole);
     1933    RpUnits::makeMetric(hertz);
     1934    RpUnits::makeMetric(becquerel);
    19311935
    19321936    // add misc definitions
Note: See TracChangeset for help on using the changeset viewer.