Opened 14 years ago

Last modified 13 years ago

#1549 closed defect (fixed)

initial() is a constant?

Reported by: Willi Braun Owned by: Willi Braun
Priority: high Milestone:
Component: Version:
Keywords: Cc: Willi Braun, Frenkel TUD, Willi Braun

Description

An equation with initial() treated as an constant simple equation,

class A
  Real a;
  Real y;
equation
  a = if not initial() then 1.0 else 0.0;
  y = a + sin(time);
end A;

Change History (1)

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

Note: See TracTickets for help on using tickets.