Opened 10 years ago

Closed 10 years ago

#4052 closed defect (fixed)

Structural parameters

Reported by: Lennart Ochel Owned by: Patrick Täuber
Priority: high Milestone: 1.11.0
Component: Frontend Version:
Keywords: Cc:

Description

It seems that structural parameters get tagged as final within the frontend. However, if such a parameter depends on other parameters, then these other parameters get evaluated but not tagged as final.

This needs to be fixed to prevent someone to change those parameters after compilation.

The following example can be used as test case:

model test3
  parameter Integer p=q+1;
  parameter Integer q=2;
  Real x[p];
equation
  der(x) = fill(1.0, p);
end test3;

q is not marked as final.

Change History (2)

comment:1 by Patrick Täuber, 10 years ago

Cc: Patrick Täuber removed
Owner: changed from somebody to Patrick Täuber
Status: new → accepted

comment:2 by Patrick Täuber, 10 years ago

Resolution: → fixed
Status: accepted → closed

This is fixed in ​d75f648.

Note: See TracTickets for help on using tickets.