Opened 13 years ago
Last modified 13 years ago
#1602 closed defect (fixed)
Range subscripting of parameters is not correct
Reported by: | Per Östlund | Owned by: | Per Östlund |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Per Östlund, Per Östlund |
Description
Subscripting a parameter with a range produces some weird results, i.e:
model M parameter Real ABCD[5,5]; parameter Real A[:,:] = ABCD[1:2,1:2]; end M;
gives
class M parameter Real ABCD[1,1]; parameter Real ABCD[1,2]; parameter Real ABCD[2,1]; parameter Real ABCD[2,2]; parameter Real A[1,1] = ABCD[{1,2},{1,2},1,1]; parameter Real A[1,2] = ABCD[{1,2},{1,2},1,2]; parameter Real A[2,1] = ABCD[{1,2},{1,2},2,1]; parameter Real A[2,2] = ABCD[{1,2},{1,2},2,2]; end M;
Note:
See TracTickets
for help on using tickets.
Fixed in r9730.