Opened 13 years ago
Closed 13 years ago
#1830 closed defect (fixed)
when in algorithm only triggered once
| Reported by: | Martin Sjölund | Owned by: | Willi Braun |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.0 |
| Component: | Backend | Version: | |
| Keywords: | Cc: |
Description
The following when-clause is only triggered once, but works properly for equation-sections:
model try
Real x(start = 1);
algorithm
when x >= 7 then
reinit(x, 5);
end when;
equation
der(x) = 1 ;
end try;
Note:
See TracTickets
for help on using tickets.

From: http://stackoverflow.com/questions/12455561/confused-by-when-clauses-in-algorithm-section