Skip to content

Commit

Permalink
Remove unnecessary sendTask variable
Browse files Browse the repository at this point in the history
This was a write-only variable so there's no need to keep it around.

Signed-off-by: Rodrigo Tobar <[email protected]>
  • Loading branch information
rtobar committed Jun 18, 2021
1 parent 3b58872 commit 91a83a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mpiroutines.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4795,7 +4795,7 @@ Int_t MPILinkAcross(const Int_t nbodies, KDTree *&tree, Particle *Part, Int_t *&
Int_t MPIGroupExchange(Options &opt, const Int_t nbodies, Particle *Part, Int_t *&pfof){
Int_t i, j,nthreads,nexport,nimport,nlocal,n;
Int_t nsend_local[NProcs],noffset_import[NProcs],noffset_export[NProcs],nbuffer[NProcs];
int sendTask,recvTask;
int recvTask;
int maxchunksize=2147483648/NProcs/sizeof(fofid_in);
int nsend,nrecv,nsendchunks,nrecvchunks,numsendrecv;
int sendoffset,recvoffset;
Expand Down Expand Up @@ -4886,7 +4886,6 @@ Int_t MPIGroupExchange(Options &opt, const Int_t nbodies, Particle *Part, Int_t
{
if (j!=ThisTask)
{
sendTask = ThisTask;
recvTask = j;

if(mpi_nsend[ThisTask * NProcs + recvTask] > 0 || mpi_nsend[recvTask * NProcs + ThisTask] > 0)
Expand Down

0 comments on commit 91a83a4

Please sign in to comment.