Skip to content

Commit

Permalink
update to ()
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Nov 20, 2016
1 parent 4e8fa6e commit 89a4d10
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 @@ -7,11 +7,11 @@ f = @ode_def_nohes LotkaVolterra begin
end a=>1.5 b=>1 c=>3 d=1

prob = ODELocalSensitivityProblem(f,[1.0;1.0],(0.0,30.0))
sol = solve(prob,DP8)
sol = solve(prob,DP8())
x = vecvec_to_mat([sol[i][1:sol.prob.indvars] for i in 1:length(sol)])

prob2 = ODEProblem(f,[1.0;1.0],(0.0,30.0))
sol2 = solve(prob2,DP8,adaptive=true,abstol=1,tstops=sol.t)
sol2 = solve(prob2,DP8(),adaptive=true,abstol=1,tstops=sol.t)
x2 = vecvec_to_mat(sol2[:])

@test maximum(x2-x) < 1e-12 # Solve the same problem
Expand Down

0 comments on commit 89a4d10

Please sign in to comment.