Opened 3 years ago

Last modified 3 years ago

#5310 new defect

Impure functions

Reported by: Jonathan Kämpe Owned by: Jonathan Kämpe
Priority: major Milestone:
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:


The following can be read about impure functions in the MLS.

• Exception: An impure function is either an impure external function or a Modelica function calling an
impure function. An impure function (that may return different values at different calls despite having the
same input argument values), may be called from within an impure function, from within a when-equation
or when-statement, and during initialization.

We should make sure functions in when clauses in blocks that don't depend on the block itself are only evaluated once per right hand side (of the model) evaluation.

Change History (2)

comment:1 Changed 3 years ago by Jonathan Kämpe


Added runtime caching of certain function calls

comment:2 Changed 3 years ago by Jonathan Kämpe


Merging bug fixes r9689 r9690 to release branch

Note: See TracTickets for help on using tickets.