| 1 | | It seems a problem related to the use of complex numbers in algorithms. |
| 2 | | If I the algorithm section with an equation section doing the same things the model compiles and runs. |
| | 1 | At least there is a problem related to the use of complex numbers in algorithms. |
| | 2 | the following code works: |
| | 3 | |
| | 4 | |
| | 5 | {{{ |
| | 6 | model ComplexFillEqs |
| | 7 | parameter Integer n = 3; |
| | 8 | Complex Z[n]; |
| | 9 | constant Complex z0 = Complex(1.0, 1.0); |
| | 10 | equation |
| | 11 | Z=fill(z0,n); |
| | 12 | end ComplexFillEqs; |
| | 13 | }}} |
| | 14 | |
| | 15 | the following does not: |
| | 16 | |
| | 17 | |
| | 18 | {{{ |
| | 19 | model ComplexFill |
| | 20 | parameter Integer n = 3; |
| | 21 | Complex Z[n]; |
| | 22 | constant Complex z0 = Complex(1.0, 1.0); |
| | 23 | algorithm |
| | 24 | Z := fill(z0,n); |
| | 25 | end ComplexFill; |
| | 26 | |
| | 27 | }}} |
| | 28 | |
| | 29 | |