diff --git a/src/output/slice.cpp b/src/output/slice.cpp index ac94e988..10f210ab 100644 --- a/src/output/slice.cpp +++ b/src/output/slice.cpp @@ -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);