Opened 15 years ago
Closed 11 years ago
#1439 closed defect (fixed)
Inner/outer replaceable does not work
| Reported by: | rfalkeborn | Owned by: | rfalkeborn |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Frontend | Version: | |
| Keywords: | Cc: | rfalkeborn |
Description
Checking model E gives an error (too few equations). However, since D is redeclared as B it should work (I think). Dymola simulates the model with no problem.
package innerOuterError
partial block A
input Real u;
output Real y;
end A;
block B
extends A;
equation
y=u;
end B;
model C
outer replaceable block D= A;
D d;
Real y;
Real u;
equation
u=d.u;
y=d.y;
end C;
model E
C c;
inner replaceable block D= B extends A;
equation
c.u=1;
end E;
end innerOuterError;
Change History (3)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Almost a duplicate of [BUG:1428], since functions are a type of classes.
comment:3 by , 11 years ago
| Cc: | rfalkeborn, → rfalkeborn |
|---|---|
| Component: | → Frontend |
| Resolution: | → fixed |
| Status: | new → closed |
This seems to work now from what I can see.
Note:
See TracTickets
for help on using tickets.

Mathcore trac: http://intranet/trac/mathmodelica/ticket/3099|http://intranet/trac/mathmodelica/ticket/3099