Opened 14 years ago
Closed 13 years ago
#1648 closed defect (fixed)
package array constants not handeld in functions
| Reported by: | Jens Frenkel | Owned by: | Jens Frenkel |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Backend | Version: | trunk |
| Keywords: | Cc: | Frenkel, TUD, Adrian Pop, Per Östlund |
Description
in function test the constant data is not replaced.
Attachments (2)
Change History (5)
by , 14 years ago
comment:2 by , 14 years ago
The constant data is now replaced, but OMC does not support arrays of records in generated code
comment:3 by , 13 years ago
| Cc: | added; removed |
|---|---|
| Component: | → Backend |
| Owner: | changed from to |
| Status: | new → assigned |
comment:4 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
There are other tickets for arrays of records.
Note:
See TracTickets
for help on using tickets.

Smaller model with the issue:
model M constant Real x[2] = {1,2}; Real y = x[if time>0.5 then 1 else 2]; end M;