From 2e5273d5a60adc647fba35113ac4e62cacec8be5 Mon Sep 17 00:00:00 2001 From: lukedecker Date: Thu, 12 May 2022 20:40:10 +0000 Subject: [PATCH] removing two local _y lines that codecov says are never touched --- src/Devito.jl | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Devito.jl b/src/Devito.jl index 38929e3..4bcb0d7 100644 --- a/src/Devito.jl +++ b/src/Devito.jl @@ -188,7 +188,6 @@ function Base.convert(::Type{Array}, x::DevitoMPIAbstractArray{T,N}) where {T,N} 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 @@ -334,7 +333,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