Changes between Initial Version and Version 1 of Ticket #3687
- Timestamp:
- 2016-02-15T16:09:55Z (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3687
- Property Priority high → blocker
-
Ticket #3687 – Description
initial v1 20 20 end foo; 21 21 }}} 22 Even worse is the following example: 23 {{{#!modelica 24 model 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)}; 48 equation 49 z = f(5 + time); 50 z2 = f1(5 + time); 51 der(y) = z; 52 end foo; 53 }}} 54 that results into really wrong outcome for z compared to z2.