Skip to content

Commit

Permalink
Gather Field on host Array
Browse files Browse the repository at this point in the history
  • Loading branch information
luraess committed Mar 13, 2024
1 parent 6b0c20c commit e6bfd9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Distributed/gather.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ end
"""
gather!(arch, dst, src::Field; kwargs...)
Gather the interior of a field `src` into a global array `dst`.
Gather the interior of a field `src` into a global array `dst` on the CPU.
"""
function gather!(arch::DistributedArchitecture, dst, src::Field; kwargs...)
gather!(dst, interior(src), cart_comm(topology(arch)); kwargs...)
gather!(dst, interior(src) |> Array, cart_comm(topology(arch)); kwargs...)
end

0 comments on commit e6bfd9b

Please sign in to comment.