Opened 12 years ago

Closed 12 years ago

#2124 closed defect (fixed)

Arrays with multiple iterators have wrong format.

Reported by: carlj <carlj@…> Owned by: Per Östlund
Priority: high Milestone:
Component: Frontend Version:
Keywords: Cc:

Description

The following model fails:

model Model1
  Real Z[3,5] = array(i*j for j in 1:5, i in 1:3);
end Model1;

since the array constructed will have the wrong format for the variable Z. The format will be 5x3 but should be 3x5 according to the specification (Modelica 3.3 specification, pages 115-116), which states the array construction above should be the same as

   {{ i * j for j in 1:5 } for i in 1:3};

which is 3x5.

Change History (2)

comment:1 by Per Östlund, 12 years ago

Owner: changed from somebody to Per Östlund
Status: newaccepted

comment:2 by Per Östlund, 12 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in r15608.

Note: See TracTickets for help on using tickets.