Skip to content

Commit

Permalink
Merge pull request #33 from ScottPJones/spj/updatechk
Browse files Browse the repository at this point in the history
Add checks for passing explicit t-gradient or Jacobian to stiff solver
  • Loading branch information
rveltz committed May 15, 2017
2 parents 48b6fd9 + 2f037a1 commit 4992834
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Expand Up @@ -2,4 +2,4 @@ julia 0.5
BinDeps 0.4.3
Compat 0.17.0
Parameters 0.5.0
DiffEqBase 0.15.0
DiffEqBase 1.5.1
22 changes: 11 additions & 11 deletions src/common.jl
Expand Up @@ -18,18 +18,18 @@ function solve{uType,tType,isinplace}(
kwargs...)

if verbose
warned = false
isempty(kwargs) || check_keywords(alg, kwargs, warnlist)
if has_tgrad(prob.f)
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
warned = !isempty(kwargs) && check_keywords(alg, kwargs, warnlist)
if !(typeof(prob.f) <: AbstractParameterizedFunction)
if has_tgrad(prob.f)
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("See http://docs.juliadiffeq.org/latest/basics/compatibility_chart.html")
warned && warn_compat()
end

if save_timeseries != nothing
Expand Down

0 comments on commit 4992834

Please sign in to comment.