Opened 7 years ago

Last modified 3 years ago

#4792 new enhancement

wrapFunctionCall does not work for array outputs

Reported by: wbraun Owned by: lochel
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 Changed 6 years ago by casella

  • Milestone changed from 1.13.0 to 1.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:2 Changed 5 years ago by casella

  • Milestone changed from 1.14.0 to 1.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 Changed 4 years ago by casella

  • Milestone changed from 1.16.0 to 1.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:4 Changed 4 years ago by casella

  • Milestone changed from 1.17.0 to 1.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:5 Changed 3 years ago by casella

  • Milestone 1.18.0 deleted

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.