Opened 8 years ago
Last modified 5 years ago
#4611 reopened defect
Wrong equation count with Complex - New case — at Initial Version
| 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
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.
Note:
See TracTickets
for help on using tickets.
