Changes between Initial Version and Version 2 of Ticket #2213
- Timestamp:
- 2013-05-30T15:51:48Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2213 – Description
initial v2 1 I found some issues using blocks. OpenModelica cannot simulate the model test 1from the following package.1 I found some issues using blocks. OpenModelica cannot simulate the model test from the following package. 2 2 3 3 {{{ 4 package foo5 block anyChange \"does any entry of a boolean vector change its value?\"4 package bug_2213 5 block anyChange "does any entry of a boolean vector change its value?" 6 6 input Boolean vec[:]; 7 7 output Boolean anychange; … … 13 13 end anyChange; 14 14 15 model test 115 model test 16 16 Boolean b[3]; 17 foo.anyChange ac(vec=b);17 anyChange ac(vec=b); 18 18 Integer i(start=0, fixed=true); 19 19 equation … … 25 25 i = pre(i) + 1; 26 26 end when; 27 end test1; 28 end foo; 27 end test; 28 end bug_2213; 29 29 30 }}} 30 31 … … 32 33 33 34 {{{ 34 class foo.test135 class bug_2213.test 35 36 Boolean b[1]; 36 37 Boolean b[2]; … … 54 55 ac.anychange := ac.anychange or change(ac.vec[i]); 55 56 end for; 56 end foo.test1;57 end bug_2213.test 57 58 }}}