Skip to content

Commit d8b18e1

Browse files
norm analytical solution sample error calc
1 parent 1c26317 commit d8b18e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/benchmark.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ function WorkPrecisionSet(prob::AbstractRODEProblem,abstols,reltols,setups,test_
314314

315315
# precompile
316316
for k in 1:N
317-
if !haskey(setups[1],:dts)
317+
if !haskey(setups[k],:dts)
318318
sol = solve(prob,setups[k][:alg];
319319
kwargs...,
320320
abstol=abstols[1],
@@ -370,7 +370,7 @@ end
370370
else
371371
W = sqrt(_dt)*randn(size(prob.u0))
372372
end
373-
analytical_solution_ends[i] = prob.f(Val{:analytic},prob.tspan[2],prob.u0,W)
373+
analytical_solution_ends[i] = norm(prob.f(Val{:analytic},prob.tspan[2],prob.u0,W))
374374
end
375375
end
376376

0 commit comments

Comments
 (0)