Skip to content

Commit 9db1674

Browse files
committed
Update mass matrix test
1 parent b8370a4 commit 9db1674

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/mass_matrix.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ function rober(du,u,p,t)
2929
end
3030
f = ODEFunction(rober,mass_matrix=M)
3131
prob_mm2 = ODEProblem(f,[1.0,0.0,0.0],(0.0,1e5),(0.04,3e7,1e4))
32-
sol2 = solve(prob_mm2,Rodas5(),reltol=1e-8,abstol=1e-8)
32+
sol2 = solve(prob_mm2,Rodas5(),reltol=1e-8,abstol=1e-8,tstops=sol.t,adaptive=false)
3333

34-
@test Array(sol) == Array(sol2)
34+
# MTK expression are canonicalized, so the floating point numbers are slightly
35+
# different
36+
@test Array(sol) Array(sol2)

0 commit comments

Comments
 (0)