Opened 13 years ago

Last modified 12 years ago

#1731 closed defect (fixed)

connection generating the wrong equations — at Initial Version

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone: 1.9.0
Component: Frontend Version:
Keywords: Cc: Martin Sjölund, Per Östlund

Description

{{{model M

connector InReal = input Real;
connector OutReal = output Real;
parameter Integer p = 3;
InReal x[p];
OutReal y[p+1];

equation

connect(x,y[2:p+1]);

end M;}}}

I get:
{{{ x[3] = y[3];

x[2] = y[2];
x[1] = y[1];}}}

I expected:
{{{ x[3] = y[4];

x[2] = y[3];
x[1] = y[2];}}}

Change History (0)

Note: See TracTickets for help on using tickets.