Lines Matching refs:nroots
4 PETSC_INTERN PetscErrorCode PetscSFGetGraph_Allgatherv(PetscSF sf, PetscInt *nroots, PetscInt *nlea… in PetscSFGetGraph_Allgatherv() argument
12 if (nroots) *nroots = sf->nroots; in PetscSFGetGraph_Allgatherv()
61 nRanksWithZeroRoots = (sf->nroots == 0) ? 1 : 0; /* I have no roots */ in PetscSFSetUp_Allgatherv()
66 dat->bcast_root = sf->nroots > 0 ? rank : -1; in PetscSFSetUp_Allgatherv()
117 PetscCall(PetscMPIIntCast(sf->nroots, &sendcount)); in PetscSFBcastBegin_Allgatherv()
144 …, (const char *)leafdata + (size_t)rstart * link->unitbytes, (size_t)sf->nroots * link->unitbytes)… in PetscSFReduceBegin_Allgatherv()
230 PetscCall(PetscMPIIntCast(sf->nroots, &sendcount)); in PetscSFBcastToZero_Allgatherv()
388 for (PetscMPIInt i = 0; i <= size; i++) dat->ioffset[i] = i * sf->nroots; in PetscSFGetLeafRanks_Allgatherv()
397 for (PetscInt j = 0; j < sf->nroots; j++) dat->irootloc[i * sf->nroots + j] = j; in PetscSFGetLeafRanks_Allgatherv()
407 PetscInt i, nroots, nleaves, rstart, *ilocal; in PetscSFCreateLocalSF_Allgatherv() local
412 nleaves = sf->nleaves ? sf->nroots : 0; /* sf->nleaves can be zero with SFGather(v) */ in PetscSFCreateLocalSF_Allgatherv()
413 nroots = nleaves; in PetscSFCreateLocalSF_Allgatherv()
425 …PetscCall(PetscSFSetGraph(lsf, nroots, nleaves, ilocal, PETSC_OWN_POINTER, iremote, PETSC_OWN_POIN… in PetscSFCreateLocalSF_Allgatherv()