Skip to content

Commit

Permalink
warning free
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jul 15, 2018
1 parent 677ce71 commit 890a8a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function DiffEqBase.__solve(
end
end
if DiffEqBase.has_jac(prob.f)
dict[:JACOBIMATRIX] = (t,u,J) -> prob.f(Val{:jac},J,u,prob.p,t)
dict[:JACOBIMATRIX] = (t,u,J) -> prob.f.jac(J,u,prob.p,t)
end

# Convert to the strings
Expand Down
4 changes: 2 additions & 2 deletions test/jac_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function Lotka(du,u,p,t)
nothing
end

function Lotka(::Type{Val{:jac}},J,u,p,t)
function Lotka_jac(J,u,p,t)
global jac_called
jac_called = true
J[1,1] = 1.0 - u[2]
Expand All @@ -19,7 +19,7 @@ function Lotka(::Type{Val{:jac}},J,u,p,t)
nothing
end

prob = ODEProblem(Lotka,ones(2),(0.0,2.0))
prob = ODEProblem(ODEFunction(Lotka,jac=Lotka_jac),ones(2),(0.0,2.0))

sol =solve(prob,radau5();dt=1//2^(4))

Expand Down
2 changes: 1 addition & 1 deletion test/mass_matrix_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ sol =solve(prob,radau5();dt=1//2^(4))

sol =solve(prob,rodas();dt=1//2^(4))

@test_throws ErrorException sol =solve(prob,ddeabm();dt=1//2^(4))
@test_throws ErrorException solve(prob,ddeabm();dt=1//2^(4))

sol =solve(prob,ddebdf();dt=1//2^(4))

0 comments on commit 890a8a9

Please sign in to comment.