Skip to content

Commit

Permalink
Add tests for Exprb32
Browse files Browse the repository at this point in the history
  • Loading branch information
MSeeker1340 committed Aug 1, 2018
1 parent b3f5697 commit 1c2a8a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/linear_nonlinear_krylov_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,15 @@ end
@test sol(1.0) exp_fun2.analytic(u0,nothing,1.0)
end
end

@testset "Adaptive exponential Rosenbrock" begin
dt = 0.05
abstol=1e-4; reltol=1e-3
sol_ref = solve(prob, Tsit5(); abstol=abstol, reltol=reltol)

sol = solve(prob, Exprb32(m=20); adaptive=true, abstol=abstol, reltol=reltol)
@test isapprox(sol(1.0), sol_ref(1.0); rtol=reltol)
sol = solve(prob_ip, Exprb32(m=20); adaptive=true, abstol=abstol, reltol=reltol)
@test isapprox(sol(1.0), sol_ref(1.0); rtol=reltol)
end
end

0 comments on commit 1c2a8a8

Please sign in to comment.