Changes between Initial Version and Version 2 of Ticket #2213


Ignore:
Timestamp:
2013-05-30T15:51:48Z (12 years ago)
Author:
Lennart Ochel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2213 – Description

    initial v2  
    1 I found some issues using blocks. OpenModelica cannot simulate the model test1 from the following package.
     1I found some issues using blocks. OpenModelica cannot simulate the model test from the following package.
    22
    33{{{
    4 package foo
    5   block anyChange \"does any entry of a boolean vector change its value?\"
     4package bug_2213
     5  block anyChange "does any entry of a boolean vector change its value?"
    66    input Boolean vec[:];
    77    output Boolean anychange;
     
    1313  end anyChange;
    1414
    15   model test1
     15  model test
    1616    Boolean b[3];
    17     foo.anyChange ac(vec=b);
     17    anyChange ac(vec=b);
    1818    Integer i(start=0, fixed=true);
    1919  equation
     
    2525      i = pre(i) + 1;
    2626    end when;
    27   end test1;
    28 end foo;
     27  end test;
     28end bug_2213;
     29
    2930}}}
    3031
     
    3233
    3334{{{
    34 class foo.test1
     35class bug_2213.test
    3536  Boolean b[1];
    3637  Boolean b[2];
     
    5455    ac.anychange := ac.anychange or change(ac.vec[i]);
    5556  end for;
    56 end foo.test1;
     57end bug_2213.test
    5758}}}