Opened 14 years ago

Last modified 14 years ago

#1241 closed defect (fixed)

Wrong ArrayIndex in expanded multidim equation

Reported by: Jens Frenkel Owned by: Jens Frenkel
Priority: high Milestone:
Component: Instantiation Version:
Keywords: Cc: Frenkel TUD,

Description

model ArrayIndex

constant Integer N=2;

Real A[N,3,3];

equation

for a in 1:N loop

A[a,:,:] = {{cos(time),sin(time),0},

{-sin(time),cos(time),0},

{0,0,1}};

end for;

end ArrayIndex;

result in:

...

A[1,:,1,1] = cos(time);

A[1,:,1,2] = sin(time);

...

Change History (1)

comment:1 by Per Östlund, 14 years ago

Fixed in revision 5998, see test case mofiles/ArrayIndex2.

Note: See TracTickets for help on using tickets.