Changes between Version 26 and Version 27 of LanguageChanges


Ignore:
Timestamp:
Mar 5, 2007, 9:47:20 PM (15 years ago)
Author:
Rafael de Pelegrini Soares
Comment:

Better explanation for DisplayUnit? and final

Legend:

Unmodified
Added
Removed
Modified
  • LanguageChanges

    v26 v27  
    241241 - declare all UOM in '''types.mso''' as '''final'''
    242242
    243 Sample code in the with the propositions included:
     243Sample code with the propositions included:
    244244{{{
    245245#!mso
     
    251251Model reactor
    252252  VARIABLES
    253   C(NComp)      as conc_mol(Brief="Concentration", DisplayUnit='mol/l', Lower=0);
    254   Co(NComp)     as conc_mol(Brief="Inlet concentration", DisplayUnit='mol/l', Lower=0);
     253  P1 as pressure(Brief="Concentration", Unit='atm');
     254  # the above line will generate an error because pressure.Unit was declared as final
     255  P2 as pressure(Brief="Inlet concentration", DisplayUnit='m');
     256  # the above line will generate an error because a incompatible DisplayUnit was given
     257  P3 as pressure(Brief="Inlet concentration", DisplayUnit='atm'); # this one is correct
    255258  ...
    256259end