Lines Matching refs:ndrootranks
10 PetscMPIInt nrootranks, ndrootranks, nleafranks, ndleafranks; in PetscSFLinkInitMPIRequests_Persistent_Basic() local
20 PetscCall(PetscSFGetRootInfo_Basic(sf, &nrootranks, &ndrootranks, NULL, &rootoffset, NULL)); in PetscSFLinkInitMPIRequests_Persistent_Basic()
22 for (PetscMPIInt i = ndrootranks, j = 0; i < nrootranks; i++, j++) { in PetscSFLinkInitMPIRequests_Persistent_Basic()
23 disp = (rootoffset[i] - rootoffset[ndrootranks]) * link->unitbytes; in PetscSFLinkInitMPIRequests_Persistent_Basic()
28 for (PetscMPIInt i = ndrootranks, j = 0; i < nrootranks; i++, j++) { in PetscSFLinkInitMPIRequests_Persistent_Basic()
29 disp = (rootoffset[i] - rootoffset[ndrootranks]) * link->unitbytes; in PetscSFLinkInitMPIRequests_Persistent_Basic()
101 PetscMPIInt nrootranks, ndrootranks, nleafranks, ndleafranks, cnt; in PetscSFLinkStartCommunication_MPIX_Stream() local
111 PetscCall(PetscSFGetRootInfo_Basic(sf, &nrootranks, &ndrootranks, NULL, &rootoffset, NULL)); in PetscSFLinkStartCommunication_MPIX_Stream()
113 for (i = ndrootranks, j = 0; i < nrootranks; i++, j++) { in PetscSFLinkStartCommunication_MPIX_Stream()
114 disp = (rootoffset[i] - rootoffset[ndrootranks]) * link->unitbytes; in PetscSFLinkStartCommunication_MPIX_Stream()
119 for (i = ndrootranks, j = 0; i < nrootranks; i++, j++) { in PetscSFLinkStartCommunication_MPIX_Stream()
120 disp = (rootoffset[i] - rootoffset[ndrootranks]) * link->unitbytes; in PetscSFLinkStartCommunication_MPIX_Stream()
299 PetscMPIInt nrootranks, ndrootranks; in PetscSFView_Basic_PatternAndSizes() local
322 PetscCall(PetscSFGetRootInfo_Basic(sf, &nrootranks, &ndrootranks, &rootranks, &rootoffset, NULL)); in PetscSFView_Basic_PatternAndSizes()
323 PetscCall(MatCreateAIJ(comm, 1, 1, size, size, 1, NULL, nrootranks - ndrootranks, NULL, &A)); in PetscSFView_Basic_PatternAndSizes()