Changes between Version 4 and Version 5 of WritingCompliantLibraries


Ignore:
Timestamp:
2013-06-14T08:39:42Z (12 years ago)
Author:
Adrian Pop
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WritingCompliantLibraries

    v4 v5  
    4343Note that in some tools, the function call `Integer(E.one)` will generate an error-message. In this case, it is useful to add a `function EnumToInteger` to convert the enumeration to integer.
    4444
     45=== Connecting Integer with Enumeration ===
     46Some tools allows connecting an enumeration component in a connector (or expandable connector) with an integer variable.
     47Such connection is not valid Modelica and either the Integer variable should be an enumeration or the enumeration should be made an Integer in the connector and the Integer function used to convert the enumeration to an Integer variable that should be connected.
     48
     49=== Redeclare instead of redeclare replaceable or replaceable in modifiers ===
     50Some tools support redeclare (interpreted as redeclare replaceable) in modifiers instead of the correct Modelica: replaceable.
     51Because of this, in some libraries where this is used OpenModelica will give an error that an element is not declared as replaceable (because the modifier is just redeclare without replaceable). Change 'redeclare' to 'redeclare replaceable' or 'replaceable' from top to leafs.
     52
    4553=== Missing inner declarations ===
    4654Some tools add missing inner declarations automatically if you forgot them. OpenModelica does not, so add them to your example models. A related error is `World world1;`, which is sometimes added by accident. The inner `World` objects needs to be called `world` or the MultiBody model will not work properly.