Opened 14 years ago

Closed 10 years ago

#1245 closed defect (duplicate)

Fail to flatten record with unbound constants

Reported by: Peter Aronsson Owned by: Peter Aronsson
Priority: high Milestone:
Component: Backend Version:
Keywords: Cc: Peter Aronsson

Description

When instantiating models involving records containg unbound constants, the flattening fails. E.g.


{{{ record Data

constant Integer num "Number of waves";

Real a[num] "Wave amplitudes";
Modelica.SIunits.Frequency f[num] "Wave frequencies";
Modelica.SIunits.Angle phase[num] "Wave phase offset";

end Data;}}}

See attached example from Mike Tillers book.

Attachments (1)

TestComplexWaveTotal.mo (32.9 KB ) - added by Adrian Pop 14 years ago.
test

Download all attachments as: .zip

Change History (3)

by Adrian Pop, 14 years ago

Attachment: TestComplexWaveTotal.mo added

test

comment:2 by Per Östlund, 10 years ago

Cc: petar, → petar
Component: Backend
Resolution: duplicate
Status: newclosed

Duplicate of #1053.

Note: See TracTickets for help on using tickets.