Opened 9 years ago

Last modified 9 years ago

#3687 closed defect

Inline module fails with protected array variables — at Initial Version

Reported by: Willi Braun Owned by: Willi Braun
Priority: blocker Milestone: 1.9.4
Component: Backend Version: v1.9.4-dev-nightly
Keywords: Cc: Vitalij Ruge

Description

Following model results into code generation issue, because of protected array variables:

model foo
  function f
    input Real z;
    output Real y;
  protected
    Real a[2];
  algorithm
    a := {2 * z, z};
    y := sum(a);
    annotation(Inline = true);
  end f;

  Real y(start = 0, fixed = true);
  Real z;
equation
  z = f(5 + time);
  der(y) = z;
end foo;

Change History (0)

Note: See TracTickets for help on using tickets.