Skip to content

Commit 242563a

Browse files
bug in benchmarking fixed
1 parent d2c8148 commit 242563a

File tree

2 files changed

+22
-29
lines changed

2 files changed

+22
-29
lines changed

benchmarks/HybridJumps/Synapse.jmd

Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,8 +1954,8 @@ function SynapseProblem(
19541954
p_synapse,
19551955
nu,
19561956
algo::T,
1957-
agg = nothing
1958-
vr_agg = VR_FRM();
1957+
agg = nothing;
1958+
vr_agg = VR_FRM(),
19591959
saveat = [],
19601960
save_everystep = isempty(saveat),
19611961
kwargs...,
@@ -2128,8 +2128,8 @@ function SynapseProblem(
21282128
p_synapse,
21292129
nu,
21302130
algo,
2131-
agg
2132-
vr_agg;
2131+
agg;
2132+
vr_agg = VR_FRM(),
21332133
jumps = nothing,
21342134
save_positions = (false, true),
21352135
saveat = [],
@@ -2188,8 +2188,8 @@ function evolveSynapse(
21882188
is_glu_released,
21892189
nu,
21902190
algos,
2191-
agg = nothing
2192-
vr_agg = VR_FRM();
2191+
agg = nothing;
2192+
vr_agg,
21932193
progress = false,
21942194
abstol = 1e-8,
21952195
reltol = 1e-7,
@@ -2208,8 +2208,8 @@ function evolveSynapse(
22082208
is_glu_released,
22092209
nu,
22102210
algos,
2211-
agg
2212-
vr_agg;
2211+
agg;
2212+
vr_agg,
22132213
progress,
22142214
abstol,
22152215
reltol,
@@ -2232,8 +2232,8 @@ function evolveSynapse_noformat(
22322232
is_glu_released,
22332233
nu,
22342234
algos,
2235-
agg = nothing
2236-
vr_agg = VR_FRM();
2235+
agg = nothing;
2236+
vr_agg,
22372237
progress = false,
22382238
abstol = 1e-8,
22392239
reltol = 1e-7,
@@ -2279,8 +2279,8 @@ function evolveSynapse_noformat(
22792279
p_synapse,
22802280
nu,
22812281
algos[1],
2282-
agg
2283-
vr_agg;
2282+
agg;
2283+
vr_agg,
22842284
jumps,
22852285
reltol,
22862286
abstol,
@@ -2302,8 +2302,8 @@ function evolveSynapse_noformat(
23022302
p_synapse,
23032303
nu,
23042304
algos[2],
2305-
agg
2306-
vr_agg;
2305+
agg;
2306+
vr_agg,
23072307
jumps,
23082308
reltol,
23092309
abstol,
@@ -2428,33 +2428,26 @@ const algorithms = (
24282428
saveat = [],
24292429
),
24302430
(
2431-
label = "Coevolve",
2431+
label = "Coevolve(VR_FRM)",
24322432
agg = Coevolve(),
24332433
vr_agg = VR_FRM(),
24342434
solver = (solver, solver),
24352435
saveat = 1 / p_synapse.sampling_rate,
24362436
),
24372437
(
2438-
label = "VR_Direct",
2438+
label = "Coevolve(VR_Direct)",
24392439
agg = Coevolve(),
24402440
vr_agg = VR_Direct(),
24412441
solver = (solver, solver),
24422442
saveat = 1 / p_synapse.sampling_rate,
24432443
),
24442444
(
2445-
label = "VR_DirectFW",
2445+
label = "Coevolve(VR_DirectFW)",
24462446
agg = Coevolve(),
24472447
vr_agg = VR_DirectFW(),
24482448
solver = (solver, solver),
24492449
saveat = 1 / p_synapse.sampling_rate,
24502450
),
2451-
(
2452-
label = "VR_FRM",
2453-
agg = Coevolve(),
2454-
vr_agg = VR_FRM(),
2455-
solver = (solver, solver),
2456-
saveat = 1 / p_synapse.sampling_rate,
2457-
),
24582451
);
24592452
```
24602453

@@ -2476,8 +2469,8 @@ for algo in algorithms
24762469
[true],
24772470
nu,
24782471
algo.solver,
2479-
algo.agg
2480-
alg.vr_agg;
2472+
algo.agg;
2473+
algo.vr_agg,
24812474
save_positions = (false, true),
24822475
saveat = algo.saveat,
24832476
save_everystep = false,
@@ -2523,8 +2516,8 @@ for algo in algorithms
25232516
[true],
25242517
nu,
25252518
$(algo).solver,
2526-
$(algo).agg
2527-
$(algo).vr_agg;
2519+
$(algo).agg;
2520+
$(algo).vr_agg,
25282521
save_positions = (false, true),
25292522
saveat = $(algo).saveat,
25302523
save_everystep = false,

benchmarks/HybridJumps/VR_Aggregator_Benchmark.jmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ weave_options:
66
---
77

88
```julia
9-
using DiffEqBase, JumpProcesses, OrdinaryDiffEq, StochasticDiffEq
9+
using DiffEqBase, Catalyst, JumpProcesses, OrdinaryDiffEq, StochasticDiffEq
1010
using Random, LinearSolve, StableRNGs, BenchmarkTools, Plots, LinearAlgebra
1111
fmt = :png
1212
width_px, height_px = default(:size)

0 commit comments

Comments
 (0)