Opened 13 years ago
Last modified 13 years ago
#1697 closed defect (fixed)
Modelica.Media issues with code generation.
Reported by: | adrpo | Owned by: | adrpo |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Backend | Version: | |
Keywords: | Cc: | adrpo, Frenkel TUD, wbraun |
Description
Francesco C. made a small test for Media (attached).
TestMedia.TestModels.TestWater, TestMedia.TestModels.TestSteam have issues in the code generation.
Attachments (2)
Change History (4)
Changed 13 years ago by adrpo
comment:1 Changed 13 years ago by wbraun
comment:2 Changed 13 years ago by sjoelund.se
comment:3 Changed 13 years ago by Frenkel TUD
solved in revision 11285
Note: See
TracTickets for help on using
tickets.
Actually, the issue is to support records in the Backend.
For example in "TestMedia.TestModels.TestWater" we inline a function parameter to one record expression.
results in
Of course "in.a" is here not available in the global scope and that results into the code generation error.
As far as I can see, one easy way to support records in expressions like "rec = f(...)",
is to handle them exactly like tuple-function calls "(out1,out2) = func(...)".
Those are just transformed to algorithms for the Backend issues, this should be easier to
implement than handle them as array equations.