Opened 13 years ago

Closed 12 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)

B.mo (967 bytes ) - added by Jens Frenkel 13 years ago.
B.mos (33 bytes ) - added by Jens Frenkel 13 years ago.

Download all attachments as: .zip

Change History (5)

by Jens Frenkel, 13 years ago

Attachment: B.mos added

comment:1 by Martin Sjölund, 13 years ago

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;
Last edited 12 years ago by Martin Sjölund (previous) (diff)

comment:2 by Martin Sjölund, 13 years ago

The constant data is now replaced, but OMC does not support arrays of records in generated code

comment:3 by Jens Frenkel, 12 years ago

Cc: Frenkel TUD added; Jens Frenkel removed
Component: Backend
Owner: changed from Jens Frenkel to Jens Frenkel
Status: newassigned

comment:4 by Martin Sjölund, 12 years ago

Resolution: fixed
Status: assignedclosed

There are other tickets for arrays of records.

Note: See TracTickets for help on using tickets.