The main problem with external functions is pure/impure which is not handled. If the argument list of a function is constant OMC will always try to evaluate it. This works well for pure functions like Modelica.Math.sin, but not for parts of the code that are supposed to fetch data from sensors, etc.

External C functions are rather well tested.
There is only one testcase for external F77 (if you have a F77 that doesn't work with language "F77", try using "C" on the same library).

External objects are handled, but I'm not sure if all cases are covered (I haven't read the spec to see all the ways they can be used).

Fixing problems with external functions tends to be easy as it is only code generation that needs to be fixed.

--
Martin Sjölund

On 2010-10-20 23:53 , Francesco Casella wrote:
Dear all,

just a quick question, what is the degree of support of external
functions and external objects in OMC?

Thanks

Francesco


Reply via email to