Opened 15 years ago

Last modified 15 years ago

#1153 closed defect (fixed)

sum of a arbitrary sized vector does not work

Reported by: Jan Brugård Owned by: Jan Brugård
Priority: critical Milestone:
Component: Version:
Keywords: Cc: Jan Brugård, Per Östlund

Description

model A
  parameter Real k = 1;
end A;
model B 
  parameter Integer n = 2;
  A a[n];
  Real y;
equation 
  y=sum(a[:].k);
end B;

message:

Check of B failed
Error: Variable a[:].k not found in scope B
Error: Wrong type or wrong number of arguments to sum(a[:].k)'.

Error: Error occured while flattening model B

Change History (2)

comment:2 by Per Östlund, 15 years ago

Fixed, see testcase ArrayReduce2.

Note: See TracTickets for help on using tickets.