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);
...
Note:
See TracTickets
for help on using tickets.
Fixed in revision 5998, see test case mofiles/ArrayIndex2.