Opened 15 years ago
Last modified 14 years ago
#1204 closed defect (fixed)
assignment to an array in algorithm section fails
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Simulation Code Generation | Version: | |
Keywords: | Cc: | daniel@…, |
Description
Hi @all,
here is small snipet demonstrating the issue:
{{{model ok
Real x[2];
equation
x = {1,1};
end ok;}}}
{{{model bug
Real x[2];
algorithm
x := {1,1}; <-- produces at the simulate(model) state the error given below
end bug;}}}
I am using current release rc2. The second model produces the error message:
Error: Too few equations, underdetermined system. The model has 1 equation(s) and 2 variable(s)
Regards, Daniel
Note:
See TracTickets
for help on using tickets.
Old problem with the backend; it doesn't know how to count in algorithms.