Changes between Initial Version and Version 1 of Ticket #3687


Ignore:
Timestamp:
2016-02-15T16:09:55Z (9 years ago)
Author:
Willi Braun
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3687

    • Property Priority highblocker
  • Ticket #3687 – Description

    initial v1  
    2020end foo;
    2121}}}
     22Even worse is the following example:
     23{{{#!modelica
     24model foo
     25  function f
     26    input Real z;
     27    output Real y;
     28  protected
     29    Real a[2];
     30  algorithm
     31    a := {2 * z, z};
     32    y := sum(a)/3;
     33    annotation(Inline = true);
     34  end f;
     35  function f1
     36    input Real z;
     37    output Real y;
     38  protected
     39    Real a[2];
     40  algorithm
     41    a := {2 * z, z};
     42    y := sum(a)/3;
     43  end f1;
     44
     45  Real y(start = 0, fixed = true);
     46  Real z, z2, w;
     47  Real a[2] = {sin(time),cos(time)};
     48equation
     49  z = f(5 + time);
     50  z2 = f1(5 + time);
     51  der(y) = z;
     52end foo;
     53}}}
     54that results into really wrong outcome for z compared to z2.