Opened 14 years ago
Closed 9 years ago
#1340 closed defect (fixed)
Code generation issue with for-iterators in simulation context
Reported by: | sjoelund.se | Owned by: | sjoelund.se |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Backend | Version: | |
Keywords: | Cc: | sjoelund.se |
Description
{{{model mod2
constant Integer n=3;
output Real Z[n, n];
Real V[n], I[n];
Integer i=1, k=1;
algorithm
for i in 1:n loop
for k in 1:n loop
Z[i,k] := i * k;
end for;
end for;
equation
I = fill(1.0,n);
V = Z * I;
end mod2; }}}
Change History (2)
comment:1 Changed 13 years ago by perost
comment:2 Changed 9 years ago by perost
- Cc changed from sjoelund.se, to sjoelund.se
- Component set to Backend
- Resolution set to fixed
- Status changed from new to closed
Seems this has been fixed, and the test case has already been moved to the working tests.
The test case mosfiles/ForIterator2.mos has been moved to failing tests. Please move it back to working tests when this bug is fixed.