Skip to content

Commit 2cd41cf

Browse files
update to 1.0 syntax
1 parent 52b096c commit 2cd41cf

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/MATLABDiffEq.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
__precompile__()
2-
31
module MATLABDiffEq
42

53
using Reexport
@@ -16,11 +14,11 @@ struct ode23tb <: MATLABAlgorithm end
1614
struct ode15s <: MATLABAlgorithm end
1715
struct ode15i <: MATLABAlgorithm end
1816

19-
function DiffEqBase.__solve{uType,tupType,isinplace,AlgType<:MATLABAlgorithm}(
17+
function DiffEqBase.__solve(
2018
prob::DiffEqBase.AbstractODEProblem{uType,tupType,isinplace},
2119
alg::AlgType,timeseries=[],ts=[],ks=[];
2220
saveat=eltype(tupType)[],timeseries_errors=true,reltol = 1e-3, abstol = 1e-6,
23-
kwargs...)
21+
kwargs...) where {uType,tupType,isinplace,AlgType<:MATLABAlgorithm}
2422

2523
tType = eltype(tupType)
2624

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ using DiffEqBase, MATLABDiffEq, ParameterizedFunctions, Test
33
f = @ode_def_bare LotkaVolterra begin
44
dx = a*x - b*x*y
55
dy = -c*y + d*x*y
6-
end a=1.5 b=1 c=3 d=1
7-
6+
end a b c d
7+
p = (1.5,1,3,1)
88
tspan = (0.0,10.0)
99
u0 = [1.0,1.0]
10-
prob = ODEProblem(f,u0,tspan)
10+
prob = ODEProblem(f,u0,tspan,p)
1111

1212
algs = [MATLABDiffEq.ode23
1313
MATLABDiffEq.ode45

0 commit comments

Comments
 (0)