Skip to content

Commit 6d1db03

Browse files
simplify a bit
1 parent efbedc9 commit 6d1db03

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

benchmarks/AstroChem/astrochem.jmd

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,7 @@ refsol = solve(oprob, Rodas5P(), abstol=1e-14, reltol=1e-14)
381381
```
382382

383383
```julia
384-
refsol = solve(oprob, Rodas5P(), abstol=1e-13, reltol=1e-13)
385-
386-
solve(oprob, RadauIIA9(), abstol=1e-9, reltol=1e-9)
384+
refsol = solve(oprob, Rodas5P(), abstol=1e-13, reltol=1e-13))
387385

388386
# Run Benchmark
389387

@@ -392,17 +390,16 @@ reltols = 1.0 ./ 10.0 .^ (9:10)
392390

393391
setups = [
394392
Dict(:alg=>FBDF()),
395-
#Dict(:alg=>QNDF()),
393+
Dict(:alg=>QNDF()),
396394
Dict(:alg=>CVODE_BDF()),
397395
#Dict(:alg=>ddebdf()),
398-
#Dict(:alg=>Rodas4()),
399396
Dict(:alg=>Rodas5P()),
400-
#Dict(:alg=>KenCarp4()),
401-
#Dict(:alg=>KenCarp47()),
402-
#Dict(:alg=>RadauIIA9()),
397+
Dict(:alg=>KenCarp4()),
398+
Dict(:alg=>KenCarp47()),
399+
Dict(:alg=>RadauIIA9()),
403400
#Dict(:alg=>rodas()),
404401
#Dict(:alg=>radau()),
405-
#Dict(:alg=>lsoda()),
402+
Dict(:alg=>lsoda()),
406403
#Dict(:alg=>ImplicitEulerExtrapolation(min_order = 5, init_order = 3,threading = OrdinaryDiffEqCore.PolyesterThreads())),
407404
#Dict(:alg=>ImplicitEulerExtrapolation(min_order = 5, init_order = 3,threading = false)),
408405
#Dict(:alg=>ImplicitEulerBarycentricExtrapolation(min_order = 5, threading = OrdinaryDiffEqCore.PolyesterThreads())),

benchmarks/AstroChem/nelson.jmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ sol4 = solve(prob, lsoda(), saveat = 1e10)
174174
```julia
175175
using Plots
176176
colors = palette(:acton, 5)
177-
p1 = plot(sol1, vars = (0,11), lc=colors[1], legend = false, titlefontsize = 12, lw = 3, title = "HCO+ solved using Rodas5 (correct solution)")
178-
p2 = plot(sol2, vars = (0,11), lc=colors[2], legend = false, titlefontsize = 12, lw = 3, title = "HCO+ solved using FBDF")
179-
p3 = plot(sol3, vars = (0,11), lc=colors[3], legend = false, titlefontsize = 12, lw = 3, title = "HCO+ solved using lsoda")
180-
p4 = plot(sol4, vars = (0,11), lc=colors[4], legend = false, titlefontsize = 12, lw = 3, title = "HCO+ solved using lsoda with saveat")
177+
p1 = plot(sol1, vars = (0,11), lc=colors[1], legend = false, titlefontsize = 12, lw = 3, title = "Rodas5")
178+
p2 = plot(sol2, vars = (0,11), lc=colors[2], legend = false, titlefontsize = 12, lw = 3, title = "FBDF")
179+
p3 = plot(sol3, vars = (0,11), lc=colors[3], legend = false, titlefontsize = 12, lw = 3, title = "lsoda")
180+
p4 = plot(sol4, vars = (0,11), lc=colors[4], legend = false, titlefontsize = 12, lw = 3, title = "lsoda with saveat")
181181
```
182182

183183
```julia

0 commit comments

Comments
 (0)