Opened 15 years ago

Last modified 14 years ago

#1204 closed defect (fixed)

assignment to an array in algorithm section fails

Reported by: daniel@… Owned by: daniel@…
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

Change History (2)

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

Old problem with the backend; it doesn't know how to count in algorithms.

comment:2 by Martin Sjölund, 14 years ago

This was solved sometime in the past and works in the trunk

Note: See TracTickets for help on using tickets.