Opened 15 years ago

Last modified 14 years ago

#1210 closed defect (fixed)

Flattening constant using transpose() fails

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone:
Component: Instantiation Version: 1.6.0
Keywords: Cc: Martin Sjölund,

Description

{{{class defect

constant Real i[2,2] = transpose({{1.1,2.2},{3.3,4.4}});
Real r;
equation

r = i[2,2];

end defect;}}}

Generates:

{{{fclass defect
constant Real i[1,1] = 1.1;
constant Real i[1,2] = 3.3;
constant Real i[2,1] = 2.2;
constant Real i[2,2] = 4.4;
Real r;
equation

r = i[2,2];

end defect;}}}

But should be "r = 4.4".

Change History (1)

comment:1 by Per Östlund, 15 years ago

Fixed in revision 5419.

Note: See TracTickets for help on using tickets.