modelica / ModelicaStandardLibrary

Free (standard conforming) library to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
https://doc.modelica.org
BSD 3-Clause "New" or "Revised" License
472 stars 169 forks source link

Unused ndim in MBS World #4246

Closed tobolar closed 8 months ago

tobolar commented 9 months ago

Does anybody knows what are the following protected parameters in Modelica.Mechanics.MultiBody.World for?

They are not used anywhere. Just being curious before deleting them.

@MartinOtter ?

MartinOtter commented 8 months ago

Can be deleted. As I understand, there are now statements such as Shape x_arrowLine(...) if enableAnimation and animateWorld; instead of Shape x_arrowLine(...)[ndim]

When switching from 1/0 dimension arrays to conditional if-clauses, it was forgotten to remove the parameters