Opened 11 years ago

Closed 11 years ago

#2529 closed defect (fixed)

Vectorization of unknown dimensions fails

Reported by: Martin Sjölund Owned by: somebody
Priority: high Milestone: 1.9.1
Component: Frontend Version: trunk
Keywords: Cc:

Description (last modified by Martin Sjölund)

Vectorization fails for the following case:

function f
  input Integer m;
  output Real y;
protected
  parameter Real phi[m] = linspace(0,1,m);
  parameter Real t[m] = cos(phi);
algorithm
  y := sum(t);
end f;

model M
  Real r = f(integer(time));
end M;

Change History (3)

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

Description: modified (diff)

comment:2 by Adrian Pop, 11 years ago

As far as I know Mahder worked on something similar to this (checking the array size when given as input to the function).

comment:3 by Martin Sjölund, 11 years ago

Resolution: fixed
Status: newclosed

Fixed in r18580.

Note: See TracTickets for help on using tickets.