Skip to content

Commit

Permalink
More robust error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Apr 30, 2017
1 parent ebf31c4 commit 35e0c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function solve{uType,tType,isinplace}(
tstops=Float64[],
saveat=Float64[],maxiter=Int(1e5),
save_start=true,
callback = nothing,
timeseries_errors=true,save_everystep= isempty(saveat),
save_timeseries = nothing,
userdata=nothing,kwargs...)
Expand All @@ -21,7 +22,7 @@ function solve{uType,tType,isinplace}(
error("This solver is not able to use mass matrices.")
end

if callback != nothing
if callback != nothing || prob.callback != nothing
error("LSODA is not compatible with callbacks.")
end

Expand Down

0 comments on commit 35e0c99

Please sign in to comment.