Opened 15 years ago

Last modified 15 years ago

#1188 closed defect (fixed)

Connections.isRoot evaluates to wrong value in Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody

Reported by: Peter Aronsson Owned by: Peter Aronsson
Priority: blocker Milestone:
Component: Version:
Keywords: Cc: Peter Aronsson, Adrian Pop

Description

Connections.isRoot evaluates to wrong value in Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.

The flat model for the example contains:

{{{if true then

body.body.Q[1] = 0.0;
body.body.Q[2] = 0.0;
...
body.body.phi_dd[3] = 0.0;
elseif body.body.useQuaternions then
…}}}

But it should be 


{{{if false then

body.body.Q[1] = 0.0;
body.body.Q[2] = 0.0;
...
body.body.phi_dd[3] = 0.0;
elseif body.body.useQuaternions then
…}}}

Change History (0)

Note: See TracTickets for help on using tickets.