Opened 13 years ago
Last modified 13 years ago
#1697 closed defect (fixed)
Modelica.Media issues with code generation.
Reported by: | Adrian Pop | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Backend | Version: | |
Keywords: | Cc: | Adrian Pop, Frenkel TUD, Willi Braun |
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)
by , 13 years ago
Attachment: | TestMedia.mos added |
---|
comment:1 by , 13 years ago
comment:2 by , 13 years ago
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.