Opened 7 years ago

Last modified 3 years ago

#4792 new enhancement

wrapFunctionCall does not work for array outputs

Reported by: Willi Braun Owned by: Lennart Ochel
Priority: high Milestone:
Component: Backend Version:
Keywords: Cc:

Description

For instance the following model has still 2 function calls:

loadString("
model A
  function f
    input Real x;
    output Real y[2];
  algorithm
    for i in 1:2 loop
      y[i] := i+sin(x);
    end for;
  end f;
  Real x[2];
  output Real y[2];
equation
  der(x) = 2*f(x[1])+x;
  y = f(x[1]);
end A;
");

simulate(A);
getErrorString();

Large models contain often arrays, so it would be quite a good benefit to improve the module wrapFunctionCall.

Change History (5)

comment:1 by Francesco Casella, 6 years ago

Milestone: 1.13.01.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:2 by Francesco Casella, 5 years ago

Milestone: 1.14.01.16.0

Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0

comment:3 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:4 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:5 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.