A closer look at Inline
Summary
In Figure 3 the equalFn function is replaced with the algorithm b=a when the code is flattened. The flat Modelica code is generated by selecting Generate listing of translated Modelica code in dsmodel.mof as in Section 2.3.2 of the Dymola User Manual Volume 1B. When InlineAfterIndexReduction=true then inlining occurs after index reduction and fairly early in the symbolic manipulation. The example in Figure 4 shows how a derivative can be supplied to a signal and this is efficiently inlined using IndexAfterIndexReduction. See the Modelica trac issues: Use InlineAfterIndexReduction consistently in Move and Move block + MultiBody model can give issues with index reduction LateInline=true results in the function being inlined in dsmodel.c.
Classifications
industries
No industries detected
applications
Web and Content Management
AskAI Classifications
Labels
Simulation Software
Modeling and Simulation
Vehicle Dynamics Software
Linked Companies
Claytex
$1M to $5M
GitHub, Inc.
$1M to $5M