Opened 14 years ago
Closed 9 years ago
#1245 closed defect (duplicate)
Fail to flatten record with unbound constants
Reported by: | petar | Owned by: | petar |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Backend | Version: | |
Keywords: | Cc: | petar |
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)
Change History (3)
comment:1 Changed 14 years ago by petar
comment:2 Changed 9 years ago by perost
- Cc changed from petar, to petar
- Component set to Backend
- Resolution set to duplicate
- Status changed from new to closed
Duplicate of #1053.
(MathCore TRAC http://intranet/trac/mathmodelica/ticket/490)