Opened 11 years ago
Closed 11 years ago
#1945 closed defect (fixed)
unbalanced models by duplicate inheritance
Reported by: | cschubert | Owned by: | perost |
---|---|---|---|
Priority: | critical | Milestone: | 1.9.0 |
Component: | Frontend | Version: | trunk |
Keywords: | connection unbalanced | Cc: | adrpo |
Description
The attached model F uses duplicate inheritance and generates redundant equations of the form
2 (1): e.port.f = 0.0
3 (1): e.d.port.f = 0.0
4 (1): e.d.port.f - e.port.f = 0.0
where there is one equation too many. This may also be related to Brunos problem.
Attachments (2)
Change History (4)
Changed 11 years ago by cschubert
Changed 11 years ago by cschubert
comment:1 Changed 11 years ago by adrpo
comment:2 Changed 11 years ago by perost
- Resolution set to fixed
- Status changed from new to closed
Fixed in r13982.
Just a bit more explanation...
This equation should not be generated:
Somehow it seems that e.d.port.f is added to a connection set as inside connector because is flow, but then when the connection to e.port.f is done is not detected that we already have a set containing e.d.port.f and a new set is created with the connection to e.port.f.
New output from +d=showEquationSource.
So it seems e.d.port.f is added as inside flow to a set in Conn, then the connect comes in E, which adds the port.f to the same connection set but somehow the old connection set is still kept. It might be something wrong with the prefixing.