Skip to content

Commit

Permalink
Merge pull request #111 from ChevronETC/removelocal
Browse files Browse the repository at this point in the history
removing two local _y lines that codecov says are never touched
  • Loading branch information
deckerla authored May 13, 2022
2 parents f6dd212 + 830beba commit a09e3ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Devito.jl
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ function Base.convert(::Type{Array}, x::DevitoMPIAbstractArray{T,N}) where {T,N}
_x = zeros(T, size(parent(x)))
copyto!(_x, parent(x))
MPI.Gatherv!(_x, y_vbuffer, 0, MPI.COMM_WORLD)

local _y

if MPI.Comm_rank(MPI.COMM_WORLD) == 0
_y = convert_resort_array!(Array{T,N}(undef, size(x)), y, x.topology, x.decomposition)
else
Expand Down Expand Up @@ -298,7 +297,6 @@ function Base.convert(::Type{Array}, x::DevitoMPISparseTimeArray{T,N}) where {T,
copyto!(_x, parent(x))
MPI.Gatherv!(_x, y_vbuffer, 0, MPI.COMM_WORLD)

local _y
if MPI.Comm_rank(MPI.COMM_WORLD) == 0
_y = convert_resort_array!(Array{T,N}(undef, size(x)), y, x.topology, x.decomposition)
else
Expand Down

0 comments on commit a09e3ef

Please sign in to comment.