Opened 6 years ago
Closed 6 years ago
#5403 closed defect (fixed)
Incorrect treatment of clocked when equations in the new instantiation
Reported by: | anonymous | Owned by: | perost |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description (last modified by gossen)
In the new instantiation clocked when equations are treated as discrete ones. That leads to the next problems:
- left-hand restrictions on discrete when equations applied to clocked ones
model Example1 Real x, y; equation when Clock(0.1) then x + y = 0; x - y = 0; end when; end Example1; //Invalid left-hand side of when-equation: x + y.
- clocked elsewhen equations are allowed
model Example2 Real x, y; equation when Clock(0.1) then x = 0; y = 1; elsewhen Clock(0.2) then x = 2; y = 3; end when; end Example2; //No errors or warnings
Change History (3)
comment:1 Changed 6 years ago by gossen
- Description modified (diff)
comment:2 Changed 6 years ago by casella
- Milestone changed from Future to 2.0.0
comment:3 Changed 6 years ago by perost
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Fixed in 851e5696, with some additional fixes in f3c20641 and ff06f061.