Skip to content

Commit

Permalink
Jacobians work!
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Nov 21, 2017
1 parent 5cd03d3 commit 1634906
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 119 deletions.
7 changes: 2 additions & 5 deletions src/common.jl
Expand Up @@ -35,10 +35,6 @@ function solve{uType,duType,tType,isinplace,LinearSolver}(
warn("Explicit t-gradient given to this stiff solver is ignored.")
warned = true
end
if has_jac(prob.f)
warn("Explicit Jacobian given to this stiff solver is ignored.")
warned = true
end
end
warned && warn_compat()
end
Expand Down Expand Up @@ -146,7 +142,8 @@ function solve{uType,duType,tType,isinplace,LinearSolver}(
res = DASKR.res_c(f!)
rt = Int32[0]
if has_jac(f!)
jac = jac_c((t, y, yp, pd, cj) -> f(Val{:jac},t,y,dy,cj,pd))
jac = common_jac_c(f!)
info[5] = 1 # Enables Jacobian
else
jac = Int32[0]
end
Expand Down

0 comments on commit 1634906

Please sign in to comment.