Opened 12 years ago

Closed 10 years ago

#2125 closed defect (fixed)

Update codegen for delay

Reported by: Martin Sjölund Owned by: Lennart Ochel
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)

delay.diff.xz (56.5 KB ) - added by Martin Sjölund 12 years ago.

Download all attachments as: .zip

Change History (3)

by Martin Sjölund, 12 years ago

Attachment: delay.diff.xz added

comment:1 by Martin Sjölund, 11 years ago

Milestone: 1.9.01.9.1

Postponed until 1.9.1

comment:2 by Lennart Ochel, 10 years ago

Resolution: fixed
Status: newclosed

I think the initialization handles delay correctly. If there are still issues, please reopen this ticket.

Note: See TracTickets for help on using tickets.