Opened 6 years ago
Last modified 6 years ago
#5572 new defect
Delay operator in a for loop of an algorithm section — at Version 2
| Reported by: | Owned by: | somebody | |
|---|---|---|---|
| Priority: | high | Milestone: | Future |
| Component: | Backend | Version: | |
| Keywords: | Cc: | alireza.masoom@…, ni.ding@…, Karim Adbdelhak, Andreas Heuermann |
Description (last modified by )
The following simple model using a delay operator in a for-loop inside an algorithm section is not handled by OpenModelica.
model test3 Real x=sin(377*time); Real z; parameter Real tau[:]={0.01,0.02}; equation algorithm for k in 1: 2 loop z:=delay(x,tau[k]); end for; end test3;
original post:
https://stackoverflow.com/questions/56916012/error-due-to-delay-operator-in-algorithm-section
Change History (2)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
| Description: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.

Is is possible to use
equationinstead ofalgorithm?