Opened 12 years ago
Closed 12 years ago
#2016 closed defect (fixed)
event-bug
Reported by: | Lennart Ochel | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | high | Milestone: | 1.9.0 |
Component: | Backend | Version: | trunk |
Keywords: | Cc: |
Description
Here is a short and strange bug regarding events/sample/when. I have already created a test (see r14752).
model sample2 Real x, y; Boolean condition1; Boolean condition2; algorithm condition1 := sample(0.0, 0.1); condition2 := sample(0.0, 0.1); when condition1 then x := pre(x) + 0.1; end when; when condition2 then y := pre(y) + 0.1; end when; end sample2;
I would expect that x and y has to be the same - omc not.
Change History (2)
comment:1 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.
This is because of our strange helpVars. We generate for each sample-call one helpVar, but we activate during simulation just the first one for equal sample-calls.
I will remove all helpVars as they are just a historical workaround. I already have started to fix this.