Skip to content

Commit 7aac0fd

Browse files
test: decrease solve tolerance, increase test tolerance
1 parent b160316 commit 7aac0fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/structural_transformation/tearing.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ infprob = ODEProblem(structural_simplify(sys), [x => 1.0], (0, 1.0), [p => 0.2])
169169
infprob.f(du, infprob.u0, pr, tt)
170170
@test any(isnan, du)
171171

172-
sol1 = solve(prob, RosShamp4(), reltol = 9e-4)
172+
sol1 = solve(prob, RosShamp4(), reltol = 2e-4)
173173
sol2 = solve(ODEProblem{false}((u, p, t) -> [-asin(u[1] - pr * t)],
174174
[1.0],
175175
(0, 1.0),
@@ -179,11 +179,11 @@ sol2 = solve(ODEProblem{false}((u, p, t) -> [-asin(u[1] - pr * t)],
179179

180180
@test sol1[x] == first.(sol1.u)
181181
@test sol1[y] == first.(sol1.u)
182-
@test sin.(sol1[z]) .+ sol1[y]pr[1] * sol1.t atol=5e-5
182+
@test sin.(sol1[z]) .+ sol1[y]pr[1] * sol1.t atol=8e-4
183183
@test sol1[sin(z) + y]sin.(sol1[z]) .+ sol1[y] rtol=1e-12
184184

185185
@test sol1[y, :] == sol1[x, :]
186-
@test (@. sin(sol1[z, :]) + sol1[y, :])pr * sol1.t atol=5e-5
186+
@test (@. sin(sol1[z, :]) + sol1[y, :])pr * sol1.t atol=8e-4
187187

188188
# 1426
189189
function Translational_Mass(; name, m = 1.0)

0 commit comments

Comments
 (0)