File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -803,14 +803,13 @@ function Base.copy!(a::PVector,b::PVector)
803803end
804804
805805function Base. copyto! (a:: PVector ,b:: PVector )
806- map (copy!,own_values (a),own_values (b))
807- # if partition(axes(a,1)) === partition(axes(b,1))
808- # map(copy!,partition(a),partition(b))
809- # elseif matching_own_indices(axes(a,1),axes(b,1))
810- # map(copy!,own_values(a),own_values(b))
811- # else
812- # error("Trying to copy a PVector into another one with a different data layout. This case is not implemented yet. It would require communications.")
813- # end
806+ if partition (axes (a,1 )) === partition (axes (b,1 ))
807+ map (copy!,partition (a),partition (b))
808+ elseif matching_own_indices (axes (a,1 ),axes (b,1 ))
809+ map (copy!,own_values (a),own_values (b))
810+ else
811+ error (" Trying to copy a PVector into another one with a different data layout. This case is not implemented yet. It would require communications." )
812+ end
814813 a
815814end
816815
You can’t perform that action at this time.
0 commit comments