Skip to content

Commit 3166141

Browse files
committed
update l2 norm calc
1 parent 0654c4d commit 3166141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/benchmark.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function WorkPrecision(prob::NonlinearProblem, alg, abstols, reltols, dts = noth
297297
sol = solve(_prob, alg; kwargs..., abstol = abstols[i], reltol = reltols[i])
298298

299299
if error_estimate == :l2
300-
errors[i] = sqrt(sum((sol .- appxsol) .^2))
300+
errors[i] = sqrt(sum(ab2, sol .- appxsol))
301301
else
302302
error("Unsupported norm used: $(error_estimate).")
303303
end

0 commit comments

Comments
 (0)