Opened 14 years ago
Last modified 14 years ago
#1526 closed defect (fixed)
using not operator on boolean array
| Reported by: | Willi Braun | Owned by: | Willi Braun |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Instantiation | Version: | trunk |
| Keywords: | Cc: | Willi Braun, |
Description
Example model:
model A
Boolean[:] b={b1,b2};
Boolean b1,b2;
Boolean[size(b,1)] nb;
Real x(start=1);
equation
der(x) = x;
when x > 1.5 then
b1 = true;
end when;
when x > 2 then
b2 = true;
end when;
nb = b;
//nb = not b; <- generates the following error
end A;
# Error encountered! Exiting... # Please check the error message and the flags. - instEquationCommonWork failed for eqn: nb = not b; in scope:A - instEquation failed eqn:nb = not b; - Inst.instClassdef failed class :A - Inst.instClassIn failed on class:A in environment: A - Inst.instClass: A failed
Note:
See TracTickets
for help on using tickets.

Fixed in r9029, see test case mofiles/ArrayLogic.