Opened 8 years ago
Last modified 5 years ago
#4611 reopened defect
Wrong equation count with Complex - New case — at Version 1
| Reported by: | massimo ceraolo | Owned by: | somebody |
|---|---|---|---|
| Priority: | blocker | Milestone: | 2.0.0 |
| Component: | Backend | Version: | |
| Keywords: | Cc: | Lennart Ochel, Andreas Heuermann, Per Östlund |
Description (last modified by )
This is similar but different from #4606
I hope the solution is as straightforward as it was in that case!
Consider the following code:
package NumEqBug
model TestLineZb
parameter Real y[:] = {8, 10} ;
Complex Z[2, 2];
equation
Z =LineZb(
y=y );
end TestLineZb;
function LineZb
import Modelica.ComplexMath;
input Real y[2];
output Complex Z[2, 2];
algorithm
Z:=fill(Complex(1,1),2,2);
end LineZb;
end NumEqBug;
Checking TestLineZb I get 4 equations and 8 variables. I would expect 8 equations and 8 variables.
Tested with
v1.13.0-dev-188-g2c5818d (64-bit) for Win
Note:
See TracTickets
for help on using tickets.
