diff --git a/src/ODEInterfaceDiffEq.jl b/src/ODEInterfaceDiffEq.jl index 71007e8..e441e53 100644 --- a/src/ODEInterfaceDiffEq.jl +++ b/src/ODEInterfaceDiffEq.jl @@ -18,7 +18,7 @@ function __init__() global warnlist = Set(warnkeywords) end -@compat const KW = Dict{Symbol,Any} +const KW = Dict{Symbol,Any} include("algorithms.jl") include("integrator_types.jl") diff --git a/src/algorithms.jl b/src/algorithms.jl index b05d69f..3f64181 100644 --- a/src/algorithms.jl +++ b/src/algorithms.jl @@ -1,6 +1,6 @@ # ODEInterface.jl Algorithms -@compat abstract type ODEInterfaceAlgorithm <: DiffEqBase.AbstractODEAlgorithm end +abstract type ODEInterfaceAlgorithm <: DiffEqBase.AbstractODEAlgorithm end struct dopri5 <: ODEInterfaceAlgorithm end struct dop853 <: ODEInterfaceAlgorithm end struct odex <: ODEInterfaceAlgorithm end diff --git a/src/solve.jl b/src/solve.jl index f3cafb2..1b0a464 100644 --- a/src/solve.jl +++ b/src/solve.jl @@ -79,7 +79,7 @@ function DiffEqBase.__solve( o[:OUTPUTFCN] = outputfcn if !(typeof(callbacks_internal.continuous_callbacks)<:Tuple{}) || !isempty(saveat) if typeof(alg) <: Union{ddeabm,ddebdf} - warn("saveat and continuous callbacks ignored for ddeabm and ddebdf") + @warn("saveat and continuous callbacks ignored for ddeabm and ddebdf") o[:OUTPUTMODE] = ODEInterface.OUTPUTFCN_WODENSE else o[:OUTPUTMODE] = ODEInterface.OUTPUTFCN_DENSE @@ -145,16 +145,16 @@ function DiffEqBase.__solve( if retcode < 0 if retcode == -1 - verbose && warn("Input is not consistent.") + verbose && @warn("Input is not consistent.") return_retcode = :Failure elseif retcode == -2 - verbose && warn("Interrupted. Larger maxiters is needed.") + verbose && @warn("Interrupted. Larger maxiters is needed.") return_retcode = :MaxIters elseif retcode == -3 - verbose && warn("Step size went too small.") + verbose && @warn("Step size went too small.") return_retcode = :DtLessThanMin elseif retcode == -4 - verbose && warn("Interrupted. Problem is probably stiff.") + verbose && @warn("Interrupted. Problem is probably stiff.") return_retcode = :Unstable end else