Changes between Initial Version and Version 1 of Ticket #2535
- Timestamp:
- 2014-01-14T13:01:22Z (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2535 – Description
initial v1 1 '''model''' tryme 1 The following model lead to a segmentation fault 2 {{{ 3 function myfun 4 input Real x; 5 output Real y; 6 protected Real z[3]= {1,2,3} ; // This Falis (why ??) 7 //protected Real z[3] ; // Works 8 algorithm 9 z[1] := x ; 10 y := 2 * z[1] ; 11 end myfun; 2 12 3 Real y ; 4 13 model tryme 14 Real y; 5 15 equation 6 16 y = myfun(3.4) * y + 2 ; 7 17 end tryme; 18 }}} 8 19 9 '''function''' myfun10 input Real x ;11 output Real y ;12 20 13 // protected Real z[3 ]= {1,2,3} ; // This Falis (why ??)14 protected Real z[3] ; // Works15 16 algorithm17 z[1] := x ;18 y := 2 * z[1] ;19 20 end myfun;