Opened 8 years ago
#4058 new defect
Inconsistent handling of structural parameters
Reported by: | Patrick Täuber | Owned by: | somebody |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | Frontend | Version: | |
Keywords: | structural parameter | Cc: |
Description
In the following model b1 is detected as a structural parameter and b2 not:
model parameterBug2 parameter Boolean b1 = true; parameter Boolean b2 = true; parameter Integer p1 = if b1 then p2 else 0; parameter Integer p2 = if b2 then 0 else p1; equation end parameterBug2;
-d=printStructuralParameters:
"Notification: The following structural parameters were evaluated in the front-end: b1
Switching the order in the following way leads to b2 detected as structural and not b1:
model parameterBug2 parameter Boolean b2 = true; parameter Boolean b1 = true; parameter Integer p1 = if b1 then p2 else 0; parameter Integer p2 = if b2 then 0 else p1; equation end parameterBug2;
-d=printStructuralParameters:
"Notification: The following structural parameters were evaluated in the front-end: b2
Note:
See TracTickets
for help on using tickets.