Skip to content

Commit

Permalink
Keyword argument hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kanav99 committed Jun 23, 2019
1 parent 77a7405 commit 8190fea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function DiffEqBase.__init(
userdata=nothing,
allow_extrapolation = alg_extrapolates(alg),
initialize_integrator=true,
alias_u0=false, kwargs...) where {algType<:OrdinaryDiffEqAlgorithm,recompile_flag}
alias_u0=false, allow_extra_args=false,kwargs...) where {algType<:OrdinaryDiffEqAlgorithm,recompile_flag}

if typeof(prob.f)<:DynamicalODEFunction && typeof(prob.f.mass_matrix)<:Tuple
if any(mm != I for mm in prob.f.mass_matrix)
Expand All @@ -69,6 +69,10 @@ function DiffEqBase.__init(
error("This solver is not able to use mass matrices.")
end

if !isempty(kwargs) && !allow_extra_args
@warn("Unsupported keyword arguments have been passed to the `solve` routine. Check if you have made a typo in argument name or if this is intentional, set `allow_extra_args` kwarg to true to supress this warning.")
end

if !isempty(saveat) && dense
@warn("Dense output is incompatible with saveat. Please use the SavingCallback from the Callback Library to mix the two behaviors.")
end
Expand Down

0 comments on commit 8190fea

Please sign in to comment.