Skip to content

Commit 1c26317

Browse files
int std_estimation_runs for safety
1 parent 0019217 commit 1c26317

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/benchmark.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,14 @@ function get_sample_errors(prob::AbstractRODEProblem,test_dt=nothing;
378378
appxsol_setup=nothing,
379379
numruns=20,std_estimation_runs = maximum(numruns),
380380
error_estimate=:final,parallel_type = :none,kwargs...)
381+
_std_estimation_runs = Int(std_estimation_runs)
382+
analytical_solution_ends = Vector{typeof(norm(prob.u0))}(_std_estimation_runs)
381383
if parallel_type == :threads
382-
Threads.@threads for i in 1:std_estimation_runs
384+
Threads.@threads for i in 1:_std_estimation_runs
383385
@sample_errors
384386
end
385387
elseif parallel_type == :none
386-
@progress for i in 1:std_estimation_runs
388+
@progress for i in 1:_std_estimation_runs
387389
@sample_errors
388390
end
389391
end

0 commit comments

Comments
 (0)