Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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 Per Östlund, 9 years ago

Resolution: invalid
Status: newclosed

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.

comment:2 by Dietmar Winkler, 9 years ago

Milestone: Futurenever
Note: See TracTickets for help on using tickets.