From d1a69afe1a33c46b83dd032873d4a3fcee6f502c Mon Sep 17 00:00:00 2001 From: "femtocleaner[bot]" Date: Sun, 15 Jul 2018 00:41:54 +0000 Subject: [PATCH 1/2] Fix deprecations --- src/ODEInterfaceDiffEq.jl | 2 +- src/algorithms.jl | 2 +- src/solve.jl | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) 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 From c264adb13150954d65191da399d84cfb06d1cd1d Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 15 Jul 2018 08:34:44 -0700 Subject: [PATCH 2/2] Update REQUIRE --- REQUIRE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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