Opened 8 years ago

Closed 8 years ago

#4052 closed defect (fixed)

Structural parameters

Reported by: lochel Owned by: ptaeuber
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 Changed 8 years ago by ptaeuber

  • Cc ptaeuber removed
  • Owner changed from somebody to ptaeuber
  • Status changed from new to accepted

comment:2 Changed 8 years ago by ptaeuber

  • Resolution set to fixed
  • Status changed from accepted to closed

This is fixed in d75f648.

Note: See TracTickets for help on using tickets.