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.
(so comparing the variable body.r_0[2] to itself).
Fixing this, the assertion is triggered for tol=1e-4. So I additionally changed the intialization prismatic1.a(..., start=9-world.g) to have more precise value.
Note: for ModelicaTest.MultiBody.Forces.Spring, this PR changes values of reference signals prismatic1.s and prismatic1.v over time. So regression check could be broken => reference signals shall be recalculated/re-generated.
No such behaviour expected for ModelicaTest.MultiBody.Forces.Spring2.
Fixes missing absolute differences like abs(x - y) for assertions.
Separate tolerances to different physical quantities
This PR especially
fixes senseless assertions like
(so comparing the variable
body.r_0[2]
to itself).Fixing this, the assertion is triggered for tol=1e-4. So I additionally changed the intialization
prismatic1.a(..., start=9-world.g)
to have more precise value.Note: for
ModelicaTest.MultiBody.Forces.Spring
, this PR changes values of reference signalsprismatic1.s
andprismatic1.v
over time. So regression check could be broken => reference signals shall be recalculated/re-generated.No such behaviour expected for
ModelicaTest.MultiBody.Forces.Spring2
.Fixes missing absolute differences like
abs(x - y)
for assertions.Separate tolerances to different physical quantities
SI units for tolerances
Refs #4193