Skip to content

Commit

Permalink
noble added to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shahriariravanian committed Apr 18, 2021
1 parent 1b4ddeb commit 8328f18
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/noble_1962.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
path = @__DIR__
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, TRBDF2(), dtmax=0.5, saveat=1.0)
V1 = map(x -> x[2], sol1.u)
V2 = map(x -> x[2], sol2.u)
err = sum(abs.(V1 .- V2)) / length(V1)
@test err < 1.0

0 comments on commit 8328f18

Please sign in to comment.