Skip to content

Commit

Permalink
Merge pull request #96 from JuliaComputing/lessstricttest
Browse files Browse the repository at this point in the history
Make the `spring - harmonic oscillator` test less strict
  • Loading branch information
baggepinnen authored Jul 4, 2024
2 parents 04479bc + 9d43892 commit 2a87577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ sol = solve(prob, Rodas4())

@test maximum(norm.(eachcol(reduce(hcat, sol[collect(forcesensor.force.u)]))))
maximum(norm.(eachcol(reduce(hcat, sol[collect(joint.frame_a.f)]))))
@test norm(sol[powersensor.power.u]) < 1e-16
@test norm(sol[powersensor.power.u]) < 1e-14
doplot() && plot(sol, idxs = collect(joint.phi))

# Test power sensos
Expand Down Expand Up @@ -1103,4 +1103,4 @@ prob = ODEProblem(ssys, [
sol3 = solve(prob, Rodas4())

@test sol1(0:0.1:1, idxs=collect(body.r_0)) sol2(0:0.1:1, idxs=collect(body.r_0)) atol=1e-5
@test sol1(0:0.1:1, idxs=collect(body.r_0)) sol3(0:0.1:1, idxs=collect(body.r_0)) atol=1e-3
@test sol1(0:0.1:1, idxs=collect(body.r_0)) sol3(0:0.1:1, idxs=collect(body.r_0)) atol=1e-3

0 comments on commit 2a87577

Please sign in to comment.