Opened 18 years ago
Last modified 18 years ago
#81 closed defect (fixed)
Problem evaluating numerical values for binding expressions
Reported by: | jakesson | Owned by: | jakesson |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | jakesson, Adrian Pop |
Description
Change History (3)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Simple additional example:
class BindingBug
parameter Real x_0 = 1;
Real x(start=x_0);
equation
der(x)=-x;
end BindingBug;
The start attribute of x is not evaluated correctly and set in the simulation
init file.
comment:3 by , 18 years ago
If a start value depends on parameters it will have the "default" value 0.0 in
the init file. It is up to the solver to call initial_function() which will set
the correct value, based on the parameter value.
Note:
See TracTickets
for help on using tickets.
There seems to be an error in DAELow.updateVariables. In the following case
the DAELow.Var record corresponding to b has and empty bindValue - shouldn't
this attribute be set in DAELow.updateVariables? For variables initiated with a
numeric value, like a above, there is no problem.