Skip to content

Commit

Permalink
Update test/noble_1962.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jul 17, 2024
1 parent 7689828 commit 8a20bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/noble_1962.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ml = CellModel(path * "/../models/noble_1962/Noble_1962.cellml")

prob = ODEProblem(ml, (0, 10000.0))
sol1 = solve(prob, Euler(), dt = 0.01, saveat = 1.0)
sol2 = solve(prob, ABDF2(), dtmax = 0.5, saveat = 1.0)
sol2 = solve(prob, TRBDF2(), dtmax = 0.5, saveat = 1.0,reltol=1e-8,abstol=1e-8)
V1 = map(x -> x[2], sol1.u)
V2 = map(x -> x[2], sol2.u)
err1 = sum(abs.(V1 .- V2)) / length(V1)
Expand Down

0 comments on commit 8a20bed

Please sign in to comment.