Skip to content

Commit

Permalink
Fix KenCarp3 convergence
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Jun 5, 2019
1 parent 49d3f7d commit 1103a63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/algconvergence/linear_nonlinear_convergence_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ end
prob = SplitODEProblem(linnonlin_fun_iip,u0,(0.0,1.0))

dts = 1 ./2 .^(8:-1:4) #14->7 good plot
for Alg in [GenericIIF1,GenericIIF2,LawsonEuler,NorsettEuler,ETDRK2,ETDRK3,ETDRK4,HochOst4,ETD2,KenCarp3]
sim = test_convergence(dts,prob,Alg())
@test sim.𝒪est[:l2] alg_order(Alg()) atol=0.1
for Alg in [GenericIIF1(),GenericIIF2(),LawsonEuler(),NorsettEuler(),ETDRK2(),ETDRK3(),ETDRK4(),HochOst4(),ETD2(),KenCarp3(linsolve=LinSolveGMRES(tol=1e-6))]
sim = test_convergence(dts,prob,Alg)
@test sim.𝒪est[:l2] alg_order(Alg) atol=0.1
end
sim = test_convergence(dts,prob,ETDRK4(),dense_errors=true)
@test sim.𝒪est[:l2] 4 atol=0.1
Expand Down

0 comments on commit 1103a63

Please sign in to comment.