Skip to content

Commit cbf273a

Browse files
author
oscarddssmith
committed
fix chunksize inference
1 parent 4cef511 commit cbf273a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/algorithms.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3243,12 +3243,7 @@ struct CompositeAlgorithm{CS, T, F} <: OrdinaryDiffEqCompositeAlgorithm
32433243
algs::T
32443244
choice_function::F
32453245
function CompositeAlgorithm(algs::T, choice_function::F) where {T,F}
3246-
CS = 0
3247-
for alg in algs
3248-
if has_chunksize(alg)
3249-
CS = get_chunksize_int(alg)
3250-
end
3251-
end
3246+
CS = mapreduce(alg->has_chunksize(alg) ? get_chunksize_int(alg) : 0, max, algs)
32523247
new{CS, T, F}(algs, choice_function)
32533248
end
32543249
end

0 commit comments

Comments
 (0)