Opened 13 years ago

Last modified 12 years ago

#1654 closed defect

Size mismatch in equation — at Version 3

Reported by: Willi Braun Owned by: Willi Braun
Priority: high Milestone:
Component: Frontend Version:
Keywords: Cc: Willi Braun

Description (last modified by Willi Braun)

is this wanted:

function foo
  input Real x[:];
  output Real y[size(x,1)];
algorithm
  y:=x*2;
end foo;
model ArrayEqn1
  Real x[1];
  Real y(start=1);
equation
  der(y)=-4*y;
  x=foo({y,2.,1.});
end ArrayEqn1;

Should this really work, because we test this in ArrayEquation.mos.   With the old simulation runtime it's even simulate.
Actually, it should not possible to check this model, because of Size mismatch.

Change History (3)

comment:1 by Martin Sjölund, 13 years ago

No, it should not even pass the front-end

comment:2 by Willi Braun, 12 years ago

Cc: wbraun, → wbraun
Component: Frontend

comment:3 by Willi Braun, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.