Opened 6 years ago

Closed 3 years ago

#3601 closed defect (fixed)

Unknown size in record constructor

Reported by: Jesper Mattsson Owned by: Jonathan Kämpe
Priority: major Milestone: Pending
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:

Description (last modified by Jonathan Kämpe)

Add support for using arrays of unknown size in record constructors in functions.

Examples of models needing this:
Modelica.Media.Examples.MixtureGases
Modelica.Media.Examples.MoistAir

Change History (7)

comment:1 Changed 6 years ago by Jesper Mattsson

Owner: changed from Jesper Mattsson to Jonathan Kämpe
Status: newassigned

comment:2 Changed 6 years ago by Jesper Mattsson

Summary: Uknown size in record constructorUnknown size in record constructor

comment:3 Changed 6 years ago by Jonathan Kämpe

Resolution: fixed
Status: assignedclosed

Fixed in r6404.

comment:4 Changed 5 years ago by Jonathan Kämpe

Milestone: 1.14.xFuture
Resolution: fixed
Status: closedreopened

The implementation does not currently work for expressions which cannot be scalarized to FIdUseExps (that is FIdUseExps and expressions replaced by temporaries). Rec(x+x) would create an exception if x is of unknown size.

comment:5 Changed 5 years ago by Jonathan Kämpe

Description: modified (diff)
Keywords: #2599. removed
Milestone: Future1.15.x

The simple cases are good enough for Modelica.Media. But it would be good if this could be included in the next release.

comment:6 Changed 5 years ago by Tove Bergdahl

Milestone: 1.15.xPending

comment:7 Changed 3 years ago by Jonathan Kämpe

Resolution: fixed
Status: reopenedclosed

Unclear description, this is probably fixed.

Note: See TracTickets for help on using tickets.