Opened 8 years ago

Closed 8 years ago

#4088 closed defect (fixed)

evalFunc and array type

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

Description

'evalFunc' has some issues with array and partial constant output.

I get for the following example

model foo
  function f
    input Real x;
    output Real[2] y;
    output Real[2] z;
  algorithm
    y[1] := 2*x; y[2] := 3*x;
    z[1] := y[1]*y[2]; z[2] := 1;
  end f;
  Real [2] y;
  equation
  (,y) = f(time);
end foo;
Variables (2)
========================================
1: y[2]:VARIABLE()  type: Real  [2]
2: y[1]:VARIABLE()  type: Real  [2]


Equations (2, 3)
========================================
1/1 (2): (_, y) = foo.f_eval1(time)   [dynamic]
2/3 (1): z[2] = 1.0   [dynamic]

with new variable 'z' in the equationsystem.

Change History (4)

comment:1 by Vitalij Ruge, 8 years ago

Component: *unknown*Backend
Owner: changed from somebody to Lennart Ochel

comment:2 by Vitalij Ruge, 8 years ago

Owner: changed from Lennart Ochel to somebody
Status: newassigned

comment:3 by Volker Waurich, 8 years ago

Owner: changed from somebody to Volker Waurich

.

comment:4 by Volker Waurich, 8 years ago

Resolution: fixed
Status: assignedclosed

Fixed with 592cec

Note: See TracTickets for help on using tickets.