Opened 15 years ago
Last modified 13 years ago
#1162 closed defect (fixed)
Backend: Fixed attribute not working properly for variables
Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Martin Sjölund, |
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;
Note:
See TracTickets
for help on using tickets.
works in trunk