Opened 11 years ago
Last modified 11 years ago
#2817 closed defect
Modelica.Math.Vectors.Utilities.roots crashes — at Initial Version
| Reported by: | Owned by: | somebody | |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.1 |
| Component: | Code Generation | Version: | trunk |
| Keywords: | vector, roots | Cc: |
Description
The following script:
model Poly
import Modelica.Math.Vectors.Utilities.roots;
Real a;
parameter Real b=2, c=3, d=4, e=5;
Real p[5];
Real r[4,2];
initial equation
a = 1;
equation
p = {a, b, c, d, e};
r = Modelica.Math.Vectors.Utilities.roots(p);
der(a) = 1;
end Poly;
produces the following output:
base_array.c: array dimension size for dimension 0 is -1 < 0! Poly: util/real_array.c:98: void copy_real_array_data(const real_array_t, real_array_t *): Assertion `base_array_ok(dest)' failed. Aborted
Note:
See TracTickets
for help on using tickets.
