Opened 15 years ago

Last modified 13 years ago

#1162 closed defect (fixed)

Backend: Fixed attribute not working properly for variables

Reported by: sjoelund.se Owned by: sjoelund.se
Priority: normal Milestone:
Component: Version:
Keywords: Cc: sjoelund.se,

Description

The following two classes will generate different initial equations. In the first case, we will solve r and get der(r) = 1 = r.

class A

Real r(fixed = false, start=2.0);

initial equation

der(r) = 1;

equation

der(r) = r;

end A;

In the second case, r will not be solved for in the initial equations. r = 2; der(r) = 1.

class A

Real r(start=2.0);

initial equation

der(r) = 1;

equation

der(r) = r;

end A;

Change History (1)

comment:1 Changed 13 years ago by wbraun

works in trunk

Note: See TracTickets for help on using tickets.