Opened 17 years ago

Last modified 17 years ago

#1008 closed defect (fixed)

Matrix equations in connections not flattened properly

Reported by: rruusu Owned by: rruusu
Priority: critical Milestone:
Component: Version:
Keywords: Cc: rruusu, Adrian Pop

Description

Matrix components are not properly handled in connection equations. They are flattened to a sets of vector equations, instead scalar equations.

A simple test case for reproduction:
{{{connector A

Real[3,3] matrix;

end A;

model B

A a, b;

equation

connect(a, b);

end B;}}}

The resulting flattened model is:

{{{fclass B
Real a.matrix[1,1];
Real a.matrix[1,2];
Real a.matrix[1,3];
Real a.matrix[2,1];
Real a.matrix[2,2];
Real a.matrix[2,3];
Real a.matrix[3,1];
Real a.matrix[3,2];
Real a.matrix[3,3];
Real b.matrix[1,1];
Real b.matrix[1,2];
Real b.matrix[1,3];
Real b.matrix[2,1];
Real b.matrix[2,2];
Real b.matrix[2,3];
Real b.matrix[3,1];
Real b.matrix[3,2];
Real b.matrix[3,3];
equation

a.matrix[1] = b.matrix[1];
a.matrix[2] = b.matrix[2];
a.matrix[3] = b.matrix[3];

end B;
}}}

Change History (1)

comment:1 by Adrian Pop, 17 years ago

fixed in revision 3584.

Note: See TracTickets for help on using tickets.