Opened 18 years ago

Last modified 18 years ago

#90 closed defect (fixed)

Expressions on arrays of dim > 2 result in strange MOF output

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

Description


Change History (3)

comment:1 by filip, 18 years ago

class A

Real x1[3];
Real y1[3];
Real x2[3,3];
Real y2[3,3];
Real x3[3,3,3];
Real y3[3,3,3];
Real x4[3,3,3,3];
Real y4[3,3,3,3];

equation

y1 = 5 * x1; OK
y2 = 5 * x2;
OK
y3 = 5 * x3; Generates strange MOF output
y4 = 5 * x4;
Generates strange MOF output

end A;

comment:2 by Peter Aronsson, 18 years ago

What is the strange output. In the current trunk I get things like:
...

y4[1,3,3,2] = 5.0 * x4[1,3,3,2];

y4[1,3,3,3] = 5.0 * x4[1,3,3,3];

...

I belive that this is okay, what do you expect it should be?

comment:3 by filip, 18 years ago

(In reply to comment #1)

What is the strange output. In the current trunk I get things like:
...

y4[1,3,3,2] = 5.0 * x4[1,3,3,2];

y4[1,3,3,3] = 5.0 * x4[1,3,3,3];

...

I belive that this is okay, what do you expect it should be?

Yes, the problem seems to have been solved in the mean time (I think as of
1.4.3).

Note: See TracTickets for help on using tickets.