Opened 8 years ago

Last modified 8 years ago

#4127 new defect

Losing Loop with ArrayEquations??

Reported by: Vitalij Ruge Owned by: somebody
Priority: high Milestone: Future
Component: Backend Version:
Keywords: Cc: Willi Braun

Description

loadString("
model foo
  function f
    input Real[2] x;
    output Real[2] y;
  algorithm
    y[1] := 2*x[1]^2 + 1; y[2] := 3*x[2]^2 + 2;
  end f;

  Real[ 2] y;
equation
  y = f(y); //Loop !?
end foo;

");

getErrorString();

simulate(foo);
getErrorString();

val(y[1], {0, 0.5, 1});

return wrong results.
The loop for y = f(y) is missing.

Change History (2)

comment:1 by Martin Sjölund, 8 years ago

Yes, the loop seems to be missing and the info.json file also does not contain variable y[2]

comment:2 by Vitalij Ruge, 8 years ago

Cc: Willi Braun added
Note: See TracTickets for help on using tickets.