Opened 13 years ago
Last modified 4 years ago
#1725 closed defect
parameter passing for replaceable models does not work — at Version 1
Reported by: | Fritz Zaversky | Owned by: | Fritz Zaversky |
---|---|---|---|
Priority: | high | Milestone: | 1.16.0 |
Component: | New Instantiation | Version: | trunk |
Keywords: | Cc: | Fritz Zaversky, Per Östlund |
Description (last modified by )
Here the test:
In the final test model Test3 the parameter a should be 1 for all three cases. But it is 10 in the second case.
model ModelA parameter Real a = 10; end ModelA; model ModelB replaceable model Model = ModelA; Model m; end ModelB; model Test3 model ModelA1 = ModelA(final a = 1 ); ModelB b(redeclare model Model = ModelA(a = 1)); // m.a == 1 ModelB b1(redeclare model Model = ModelA1); // m.a == 10 ModelA1 a; // a.a == 1 end Test3;
Note:
See TracTickets
for help on using tickets.