You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported by sjoelund.se on 7 Sep 2012 08:26 UTC
GravityTypes in the World object is defined as an enumeration but it is used or referred to as an Integer:
$ grep -nR "gravityType=[0-9]" libraries/ | grep -v svn | grep -v "Modelica 3.1"
libraries/ModelicaTest 1.1/MultiBody.mo:3523: animateWorld=false, gravityType=0)
libraries/ModelicaTest 1.1/MultiBody.mo:6028: animateWorld=false, gravityType=0)
libraries/Modelica 3.2.1/Mechanics/MultiBody/package.mo:1273: "Constant gravity acceleration, resolved in world frame, if gravityType=1";
libraries/Modelica 3.2.1/Mechanics/MultiBody/package.mo:1275: "Field constant of point gravity field, if gravityType=2";
ModelicaTest needs to be updated to be legal Modelica. And the documentation strings should be updated.
I did not update any code because 0 is not a valid enumeration index.
Reported by sjoelund.se on 7 Sep 2012 08:26 UTC
GravityTypes in the World object is defined as an enumeration but it is used or referred to as an Integer:
ModelicaTest needs to be updated to be legal Modelica. And the documentation strings should be updated.
I did not update any code because 0 is not a valid enumeration index.
Migrated-From: https://trac.modelica.org/Modelica/ticket/803
The text was updated successfully, but these errors were encountered: