Opened 14 years ago

Last modified 14 years ago

#1215 closed defect (fixed)

Records as input argument to functions does not work

Reported by: perost Owned by: perost
Priority: high Milestone:
Component: Simulation Code Generation Version: 1.6.0
Keywords: Cc: perost, perost

Description

A function that takes a record as input argument will generate invalid simulation code. Example model:

record R
  Real x;
  Real y;
end R;

function f
  input R r;
  output Real y;
end f;

model bug1215
  input R r;
  output Real y;
equation
  r.x = time;
  r.y = r.x * 2;
  y = f(r);
end bug1215;

Change History (1)

comment:1 Changed 14 years ago by perost

Fixed in revision 5534.

Note: See TracTickets for help on using tickets.