#1947 closed defect (fixed)
unbalanced model - Wrong root in connection graph
Reported by: | cschubert | Owned by: | adrpo |
---|---|---|---|
Priority: | critical | Milestone: | 1.9.0 |
Component: | Frontend | Version: | trunk |
Keywords: | unbalanced connection graph | Cc: |
Description
I found a bug in the connection graph handling.
If the world object, which defines Connection.root(), is used in a submodel with an outer prefix, it seems that the root is not recognized as such.
See the attached test model (CGraphBug.TopModel). From the equations it can be seen, that mass.frame_a is chosen as root, as the following equations are generated:
27 (22): if mass.useQuaternions then mass.phi_dd[3] = 0.0 mass.phi_dd[2] = 0.0 [...]
This branch is only selected if Connections.isRooted(mass.frame_a) becomes true.
Attachments (4)
Change History (7)
Changed 11 years ago by cschubert
Changed 11 years ago by cschubert
Changed 11 years ago by adrpo
comment:1 Changed 11 years ago by adrpo
Hm, it seems we're missing the connection:
connect(world.frame_b, frame_a)
from SubModel1 as far as I can see. I'll look more into it.
comment:2 Changed 11 years ago by adrpo
- Resolution set to fixed
- Status changed from new to closed
Fixed in r14011.
comment:3 Changed 11 years ago by adrpo
Christian, can you add this model to the testsuite so we don't break this stuff again?
Thanks!
generated with +d=cgraphGraphVizFile