Skip to content

Commit

Permalink
Cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
tbetcke committed Dec 9, 2024
1 parent f0ffb4f commit c51f189
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/sparse/distributed_vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,8 @@ impl<'a, Item: RlstScalar + Equivalence, C: Communicator> DistributedVector<'a,
}

/// Create from root
pub fn scatter_from(&mut self, source_rank: usize) {
let source_process = self
.index_layout()
.comm()
.process_at_rank(source_rank as Rank);
pub fn scatter_from(&mut self, root: usize) {
let source_process = self.index_layout().comm().process_at_rank(root as Rank);

source_process.scatter_varcount_into(self.local_mut().data_mut());
}
Expand Down

0 comments on commit c51f189

Please sign in to comment.