Skip to content

Commit

Permalink
forgot to clean up the old communicator code
Browse files Browse the repository at this point in the history
  • Loading branch information
glesur committed Nov 9, 2023
1 parent e3a38ea commit 1afa4b8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/output/slice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ void Slice::CheckForWrite(DataBlock &data) {
Kokkos::atomic_add(&Vcout(n,kt,jt,it) , Vcin(n,k,j,i)/ntot);
});
#ifdef WITH_MPI
// Create a communicator on which we can do the sum accross processors
int remainDims[3] = {false, false, false};
remainDims[direction] = true;
MPI_Cart_sub(subgrid->parentGrid->CartComm, remainDims, &avgComm);
MPI_Allreduce(MPI_IN_PLACE, Vcout.data(),
Vcout.extent(0)*Vcout.extent(1)*Vcout.extent(2)*Vcout.extent(3),
realMPI, MPI_SUM, avgComm);
Expand Down

0 comments on commit 1afa4b8

Please sign in to comment.