diff --git a/REQUIRE b/REQUIRE index bef0497..1969fc4 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,4 +1,4 @@ -julia 0.7-beta +julia 0.7-beta2 ODEInterface 0.1.3 DiffEqBase 3.0.0 Compat 0.17.0 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 b8b0ed6..88909ac 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