Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Jul 30, 2024
1 parent d8ab3b6 commit a00eaa4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CellData.jl
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,10 @@ function Arrays.evaluate!(cache,I::DistributedInterpolable{Tx,Ty},x::AbstractVec
infty(::Type{VectorValue{D,T}}) where {D,T} = VectorValue(fill(infty(T),D)...)
combine(a,b) = map(max,a,b)
function array_reduce(f,a)
T = getany(map(eltype,a))
b = gather(a)
c = map_main(b) do b
c = fill(infty(eltype((first(b)))),length(first(b)))
c = map_main(b;otherwise=b->T[]) do b
c = fill(infty(T),length(first(b)))
for bi in b
c = f(c,bi)
end
Expand Down

0 comments on commit a00eaa4

Please sign in to comment.