Opened 15 years ago

Last modified 14 years ago

#1215 closed defect (fixed)

Records as input argument to functions does not work

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

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 by Per Östlund, 15 years ago

Fixed in revision 5534.

Note: See TracTickets for help on using tickets.