Opened 4 years ago

Closed 4 years ago

#4672 closed defect (fixed)

Efficient handling of constants

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

Description

Constants and known parameters should be moved to their own list in the fclass (they are not used between flattening and code generation). They should also be alias eliminated by identifying identical binding expressions. This will reduce compilation time and the size of the z-vector.

Change History (7)

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

changeset:8408

Added alias elimination of constants with identical binding expressions, disabled by default

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

changeset:8411

Bugfixes for alias elimination of constants. Also prepares test cases for the feature to be on by default

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

changeset:8451

Enabled alias elimination of constants by default, updated tests.

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

changeset:8457

Fixed folding of structural parameters for full fclass, problems revealed by constant alias elimination

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

changeset:8459

Structural parameters now generated as constants in xml, to comply with fmi2 on constants in alias sets

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

changeset:8461

Updated erroneuos test models

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

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