Changes between Initial Version and Version 1 of Ticket #2535


Ignore:
Timestamp:
2014-01-14T13:01:22Z (11 years ago)
Author:
Willi Braun
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2535 – Description

    initial v1  
    1 '''model''' tryme
     1The following model lead to a segmentation fault
     2{{{
     3function 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
     8algorithm
     9  z[1] := x ;
     10  y    := 2 * z[1] ;
     11end myfun;
    212
    3 Real y ;
    4 
     13model tryme
     14  Real y;
    515equation
    616   y = myfun(3.4) * y + 2 ;
    717end tryme;
     18}}}
    819
    9 '''function''' myfun
    10 input Real x ;
    11 output Real y ;
    1220
    13 //  protected Real  z[3 ]= {1,2,3} ;  // This Falis (why ??)
    14     protected  Real  z[3] ;                  // Works
    15 
    16 algorithm
    17   z[1] := x ;
    18   y    := 2 * z[1] ;
    19 
    20 end myfun;