Opened 8 years ago
Closed 8 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 , 8 years ago
Cc: | removed |
---|---|
Owner: | changed from | to
Status: | new → accepted |
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.
This is fixed in d75f648.