Searched refs:nRanksWithZeroRoots (Results 1 – 1 of 1) sorted by relevance
59 PetscMPIInt rank, nRanksWithZeroRoots; in PetscSFSetUp_Allgatherv() local61 nRanksWithZeroRoots = (sf->nroots == 0) ? 1 : 0; /* I have no roots */ in PetscSFSetUp_Allgatherv()62 PetscCallMPI(MPIU_Allreduce(MPI_IN_PLACE, &nRanksWithZeroRoots, 1, MPI_INT, MPI_SUM, comm)); in PetscSFSetUp_Allgatherv()63 …if (nRanksWithZeroRoots == size - 1) { /* Only one rank has roots, which indicates a bcast pattern… in PetscSFSetUp_Allgatherv()