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: | perost |
---|---|---|---|
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 Changed 12 years ago by perost
- Owner changed from somebody to perost
- Status changed from new to accepted
comment:2 Changed 12 years ago by perost
- Resolution set to fixed
- Status changed from accepted to closed
Fixed in r15608.