Opened 11 years ago

Closed 11 years ago

#2585 closed defect (fixed)

connects for array components do not work anymore

Reported by: Christian Schubert Owned by: Per Östlund
Priority: high Milestone: 1.9.1
Component: Frontend Version: trunk
Keywords: Cc: Adrian Pop, michael.kloeppel@…, Volker Waurich

Description (last modified by Christian Schubert)

Hi,

we have a simple N pendulum model, which reads

model NPendulum
  constant Integer N=10;
  World world;
  Body bodies[N];
  RevoluteJoint joints[N];
equation
  connect(world.frame_b, joints[1].frame_a);
  connect(joints.frame_b, bodies.frame_a) "Connects all instances at once";
  connect(bodies[1:N-1].frame_b, joints[2:N].frame_a) "Connects to next chain";
end NPendulum;

As of r18987 this model doesn't translate anymore, because an assertion is raised

[Joints.mo:310:5-311:62:writable] Error: Assertion during Translation failed: "Connector frame_b of revolute joint is not connected".

It would be great if someone could take a look at this.

I will attach the model and a mos file, so that you can test it yourselves.

Attachments (2)

NPendulum.mo (2.1 KB ) - added by Christian Schubert 11 years ago.
Model
NPendulum.mos (82 bytes ) - added by Christian Schubert 11 years ago.
mos file

Download all attachments as: .zip

Change History (4)

by Christian Schubert, 11 years ago

Attachment: NPendulum.mo added

Model

by Christian Schubert, 11 years ago

Attachment: NPendulum.mos added

mos file

comment:1 by Christian Schubert, 11 years ago

Description: modified (diff)

comment:2 by Per Östlund, 11 years ago

Resolution: fixed
Status: newclosed

Fixed in r19145.

Note: See TracTickets for help on using tickets.