Opened 9 years ago

Last modified 7 years ago

#3464 new defect

Failing variable lookup during array creation — at Initial Version

Reported by: Rüdiger Franke Owned by: Marcus Walther
Priority: high Milestone: Future
Component: Cpp Run-time Version:
Keywords: Cc: Niklas Worschech, Marcus Walther

Description

Some models from MSL trunk initialize arrays with expressions like:

    parameter Real TransformationMatrix[2, m]=2/m*{+cos(+phi),+sin(+phi)};  

The Cpp runtime generates separate createArray functions that don't see the used variables. See e.g. Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,

https://test.openmodelica.org/libraries/MSL_trunk_cpp/BuildModelRecursive.html

Shouldn't these functions be removed and the array be created in situ?

Change History (0)

Note: See TracTickets for help on using tickets.