Opened 12 years ago
Closed 12 years ago
#2111 closed defect (fixed)
array element as first argument to change
Reported by: | lochel | Owned by: | sjoelund.se |
---|---|---|---|
Priority: | high | Milestone: | 1.9.0 |
Component: | Frontend | Version: | trunk |
Keywords: | Cc: | sjoelund.se, adrpo |
Description (last modified by lochel)
I have a model with the following block inside:
block anyChange "Does any entry of a Boolean vector change its value?" input Boolean vec[:]; output Boolean anychange; algorithm anychange:=false; for i in 1:size(vec, 1) loop anychange:=anychange or change(vec[i]); end for; end anyChange;
... wherefore I get the following error message from OpenModelica:
[testTotal_vs.mo:922:11-922:49:writable] Error: First argument to change in component P1.activeConOut must be a variable
[line 922 is "anychange:=anychange or change(vec[i]);" from the snippet above]
Change History (5)
comment:1 Changed 12 years ago by lochel
- Description modified (diff)
comment:2 Changed 12 years ago by sjoelund.se
- Owner changed from somebody to sjoelund.se
- Status changed from new to accepted
comment:3 Changed 12 years ago by sjoelund.se
comment:4 Changed 12 years ago by lochel
great!
comment:5 Changed 12 years ago by sjoelund.se
- Resolution set to fixed
- Status changed from accepted to closed
Fixed in r15502.
Note: See
TracTickets for help on using
tickets.
Got the fix, running the testsuite now.