#3704 closed defect (invalid)
setting parameter and using parameter of different levels in the same time don't work
Reported by: | Vitalij Ruge | Owned by: | somebody |
---|---|---|---|
Priority: | critical | Milestone: | never |
Component: | Frontend | Version: | v1.9.4-dev-nightly |
Keywords: | Cc: | Per Östlund, Adrian Pop, Martin Sjölund |
Description
the model
model insideA parameter Integer n = 3; Real[:] startValues = fill(1.0, iA.n); end insideA; model A insideA iA(n = n); parameter Integer n; end A; model B A a(n = 5, iA(startValues = fill(1.0, a.n))); end B;
failed. Don't can find iA.n inside insideA$a$iA.
Change History (2)
comment:1 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 9 years ago
Milestone: | Future → never |
---|
Note:
See TracTickets
for help on using tickets.
The model insideA is invalid, because iA.n is used as a modifier to startValues, but iA is not reachable from insideA. The error message you get is thus correct, although it could be better.