Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions pylops_mpi/DistributedArray.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,7 @@ def __setitem__(self, index, value):
Represents the value that will be assigned to the local array at
the specified index positions.
"""
if self.partition is Partition.BROADCAST:
self.local_array[index] = self.base_comm.bcast(value)
else:
self.local_array[index] = value
self.local_array[index] = value

@property
def global_shape(self):
Expand Down
Loading