Opened 12 years ago

Closed 12 years ago

#1821 closed defect (fixed)

Complex constructor does not work

Reported by: Martin Sjölund Owned by: Mahder Alemseged Gebremedhin
Priority: high Milestone: 1.9.0
Component: Frontend Version:
Keywords: Cc:

Description (last modified by Martin Sjölund)

In MSL 3.2.1 Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench (among others) use Complex numbers. The constructor call is Complex(0), which should work. But the code does not take into consideration that we need to look for the constructor, saying im is unbound.

[/home/marsj/trunk/build/lib/omlibrary/Modelica 3.2.1/Electrical/QuasiStationary/MultiPhase.mo:388:9-388:66:writable] Error: Function argument im was not given by the function call, and does not have a default value.

Change History (2)

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

Description: modified (diff)

comment:2 by Mahder Alemseged Gebremedhin, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.