Skip to content

Commit 24adfbc

Browse files
fix tableau tests
1 parent 635d0ac commit 24adfbc

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

test/ode_tableau_convergence_tests.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
using OrdinaryDiffEq, DiffEqDevTools
2-
probArr = Vector{ODETestProblem}(2)
3-
bigprobArr = Vector{ODETestProblem}(2)
2+
probArr = Vector{ODEProblem}(2)
3+
bigprobArr = Vector{ODEProblem}(2)
44

55
const linear_bigα = parse(BigFloat,"1.01")
66
f = (t,u) -> (linear_bigα*u)
7-
analytic = (t,u0) -> u0*exp(linear_bigα*t)
7+
(p::typeof(f))(::Type{Val{:analytic}},t,u0) = u0*exp(linear_bigα*t)
88
"""Linear ODE on Float64"""
9-
prob_ode_bigfloatlinear = ODETestProblem(f,parse(BigFloat,"0.5"),analytic)
9+
prob_ode_bigfloatlinear = ODEProblem(f,parse(BigFloat,"0.5"),(0.0,1.0))
1010

1111
f = (t,u,du) -> begin
1212
for i in 1:length(u)
1313
du[i] = linear_bigα*u[i]
1414
end
1515
end
16+
(p::typeof(f))(::Type{Val{:analytic}},t,u0) = u0*exp.(linear_bigα*t)
1617
"""2D Linear ODE, bigfloats"""
17-
prob_ode_bigfloat2Dlinear = ODETestProblem(f,map(BigFloat,rand(4,2)).*ones(4,2)/2,analytic)
18+
prob_ode_bigfloat2Dlinear = ODEProblem(f,map(BigFloat,rand(4,2)).*ones(4,2)/2, (0.0,1.0))
1819

1920
probArr[1] = prob_ode_linear
2021
probArr[2] = prob_ode_2Dlinear

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ using Base.Test
44
# write your own tests here
55
@time @testset "Benchmark Tests" begin include("benchmark_tests.jl") end
66
@time @testset "ODE AppxTrue Tests" begin include("ode_appxtrue_tests.jl") end
7-
!is_windows() && @time @testset "ODE Tableau Convergence Tests" begin include("ode_tableau_convergence_tests.jl") end ## Windows 32-bit fails on Butcher62 convergence test
7+
@time @testset "ODE Tableau Convergence Tests" begin include("ode_tableau_convergence_tests.jl") end ## Windows 32-bit fails on Butcher62 convergence test

0 commit comments

Comments
 (0)