Opened 12 years ago
Closed 10 years ago
#2125 closed defect (fixed)
Update codegen for delay
Reported by: | sjoelund.se | Owned by: | lochel |
---|---|---|---|
Priority: | high | Milestone: | 1.9.1 |
Component: | Run-time | Version: | trunk |
Keywords: | Cc: |
Description
I have a patch where I have done some of the work to make delay() work more as expected.
But I ran into problems because during initialization, we call functionDAE with initial() set to false. And before storing the first delay-values. I was under the impression that we had (finally) replaced all calls to delay() with the actual expression during initialization. And of course I don't know how to fix initialization, so... Lennart maybe you want to have a look?
There are some bad diffs in my code (like changing ASSERT to assert to debug easier).
Basically, at runtime I want to call delayImpl(data, index, curTime) for most calls to delay(exp, T) (most things are known).
One thing that remains to be done is limiting the solver step size to at most T (should be an easy fix).
Attachments (1)
Change History (3)
Changed 12 years ago by sjoelund.se
comment:1 Changed 11 years ago by sjoelund.se
- Milestone changed from 1.9.0 to 1.9.1
comment:2 Changed 10 years ago by lochel
- Resolution set to fixed
- Status changed from new to closed
I think the initialization handles delay correctly. If there are still issues, please reopen this ticket.
Postponed until 1.9.1