Lines Matching refs:nroots

43 static PetscErrorCode PetscSFGetGraph_Alltoall(PetscSF sf, PetscInt *nroots, PetscInt *nleaves, con…  in PetscSFGetGraph_Alltoall()  argument
48 if (nroots) *nroots = sf->nroots; in PetscSFGetGraph_Alltoall()
67 PetscInt nroots = 1, nleaves = 1, *ilocal; in PetscSFCreateLocalSF_Alltoall() local
73 nroots = 1; in PetscSFCreateLocalSF_Alltoall()
83 …PetscCall(PetscSFSetGraph(lsf, nroots, nleaves, NULL /*contiguous leaves*/, PETSC_OWN_POINTER, ire… in PetscSFCreateLocalSF_Alltoall()
93 PetscMPIInt nroots, *roots, nleaves, *leaves, rank, ndiranks, ndranks; in PetscSFCreateEmbeddedRootSF_Alltoall() local
106nroots, comm, PETSC_ERR_ARG_OUTOFRANGE, "Min/Max root indices %" PetscInt_FMT "/%" PetscInt_FMT " … in PetscSFCreateEmbeddedRootSF_Alltoall()
107 PetscCall(PetscMPIIntCast(nselected, &nroots)); in PetscSFCreateEmbeddedRootSF_Alltoall()
109 for (PetscMPIInt i = 0; i < nroots; i++) PetscCall(PetscMPIIntCast(tmproots[i], &roots[i])); in PetscSFCreateEmbeddedRootSF_Alltoall()
113 …PetscCall(PetscCommBuildTwoSided(comm, 0 /*empty msg*/, MPI_INT /*fake*/, nroots, roots, NULL /*to… in PetscSFCreateEmbeddedRootSF_Alltoall()
153 PetscCall(PetscMalloc2(nroots, &bas->iranks, nroots + 1, &bas->ioffset)); in PetscSFCreateEmbeddedRootSF_Alltoall()
154 PetscCall(PetscMalloc1(nroots, &bas->irootloc)); in PetscSFCreateEmbeddedRootSF_Alltoall()
157 for (i = 0; i < nroots; i++) { in PetscSFCreateEmbeddedRootSF_Alltoall()
164 PetscCall(PetscSortMPIInt(nroots, roots)); in PetscSFCreateEmbeddedRootSF_Alltoall()
165 if (nroots && roots[0] < 0) roots[0] = rank; in PetscSFCreateEmbeddedRootSF_Alltoall()
167 bas->niranks = nroots; in PetscSFCreateEmbeddedRootSF_Alltoall()
170 bas->itotal = nroots; in PetscSFCreateEmbeddedRootSF_Alltoall()
171 for (i = 0; i < nroots; i++) { in PetscSFCreateEmbeddedRootSF_Alltoall()