Skip to content

Commit

Permalink
Revert usages of SimTK::Eps
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbianco committed Oct 3, 2024
1 parent d0852c1 commit a05e4db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OpenSim/Actuators/Test/testDeGrooteFregly2016Muscle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,15 +598,15 @@ TEST_CASE("DeGrooteFregly2016Muscle basics") {
CHECK(muscle.getPennationAngularVelocity(state) == 0);
CHECK(muscle.getTendonVelocity(state) == 0);
CHECK_THAT(muscle.getForceVelocityMultiplier(state),
Catch::Matchers::WithinAbs(0.0, SimTK::Eps));
Catch::Matchers::WithinAbs(0.0, 1e-10));

model.realizeDynamics(state);
const auto Fmax = muscle.getMaxIsometricForce();
const auto fpass = muscle.calcPassiveForceMultiplier(1.0);
CHECK_THAT(muscle.getActiveFiberForce(state),
Catch::Matchers::WithinAbs(0.0, SimTK::Eps));
Catch::Matchers::WithinAbs(0.0, 1e-10));
CHECK_THAT(muscle.getActiveFiberForceAlongTendon(state),
Catch::Matchers::WithinAbs(0.0, SimTK::Eps));
Catch::Matchers::WithinAbs(0.0, 1e-10));
CHECK(muscle.getPassiveFiberForce(state) == Approx(Fmax * fpass));
CHECK(muscle.getPassiveFiberForceAlongTendon(state) ==
Approx(Fmax * fpass));
Expand Down Expand Up @@ -643,7 +643,7 @@ TEST_CASE("DeGrooteFregly2016Muscle basics") {
CHECK_THAT(muscle.getMuscleStiffness(state),
Catch::Matchers::WithinRel(muscleStiffness, 1e-6));
CHECK_THAT(muscle.getFiberActivePower(state),
Catch::Matchers::WithinAbs(0.0, SimTK::Eps));
Catch::Matchers::WithinAbs(0.0, 1e-10));
CHECK(muscle.getFiberPassivePower(state) ==
Approx(Vmax * Fmax * fpass));
CHECK(muscle.getTendonPower(state) == Approx(0.0));
Expand Down

0 comments on commit a05e4db

Please sign in to comment.