Lines Matching refs:proc
504 PetscMPIInt size, rank, tag1, tag2, proc = 0, nrqs, *pa; in MatIncreaseOverlap_MPIAIJ_Once() local
540 PetscCall(PetscLayoutFindOwner(C->rmap, row, &proc)); in MatIncreaseOverlap_MPIAIJ_Once()
541 w4[proc]++; in MatIncreaseOverlap_MPIAIJ_Once()
647 PetscCall(PetscLayoutFindOwner(C->rmap, row, &proc)); in MatIncreaseOverlap_MPIAIJ_Once()
648 if (proc != rank) { /* copy to the outgoing buffer */ in MatIncreaseOverlap_MPIAIJ_Once()
649 ctr[proc]++; in MatIncreaseOverlap_MPIAIJ_Once()
650 *ptr[proc] = row; in MatIncreaseOverlap_MPIAIJ_Once()
651 ptr[proc]++; in MatIncreaseOverlap_MPIAIJ_Once()
720 proc = recv_status[i].MPI_SOURCE; in MatIncreaseOverlap_MPIAIJ_Once()
721 PetscCheck(proc == onodes1[i], PETSC_COMM_SELF, PETSC_ERR_PLIB, "MPI_SOURCE mismatch"); in MatIncreaseOverlap_MPIAIJ_Once()
722 PetscCall(PetscMPIIntCast(isz1[i], &rw1[proc])); in MatIncreaseOverlap_MPIAIJ_Once()
1222 …ank, size, *req_source1, *req_source2, tag1, tag2, tag3, tag4, *w1, *w2, nrqr, nrqs = 0, proc, *pa; in MatCreateSubMatrices_MPIAIJ_SingleIS_Local() local
1282 proc = 0; in MatCreateSubMatrices_MPIAIJ_SingleIS_Local()
1286 if (!isrowsorted) proc = 0; in MatCreateSubMatrices_MPIAIJ_SingleIS_Local()
1287 while (row >= C->rmap->range[proc + 1]) proc++; in MatCreateSubMatrices_MPIAIJ_SingleIS_Local()
1288 w1[proc]++; in MatCreateSubMatrices_MPIAIJ_SingleIS_Local()
1289 row2proc[j] = proc; /* map row index to proc */ in MatCreateSubMatrices_MPIAIJ_SingleIS_Local()
1291 if (proc != rank && !w2[proc]) { in MatCreateSubMatrices_MPIAIJ_SingleIS_Local()
1292 w2[proc] = 1; in MatCreateSubMatrices_MPIAIJ_SingleIS_Local()
1299 for (PetscMPIInt proc = 0, j = 0; proc < size; proc++) { in MatCreateSubMatrices_MPIAIJ_SingleIS_Local() local
1300 if (w1[proc]) pa[j++] = proc; in MatCreateSubMatrices_MPIAIJ_SingleIS_Local()
2041 PetscMPIInt nrqs = 0, *pa, proc = -1; in MatCreateSubMatrices_MPIAIJ_Local() local
2167 if (issorted[i]) proc = 0; in MatCreateSubMatrices_MPIAIJ_Local()
2169 if (!issorted[i]) proc = 0; in MatCreateSubMatrices_MPIAIJ_Local()
2171 while (row >= C->rmap->range[proc + 1]) proc++; in MatCreateSubMatrices_MPIAIJ_Local()
2172 w4[proc]++; in MatCreateSubMatrices_MPIAIJ_Local()
2173 row2proc_i[j] = proc; /* map row index to proc */ in MatCreateSubMatrices_MPIAIJ_Local()
2249 proc = row2proc_i[j]; in MatCreateSubMatrices_MPIAIJ_Local()
2250 if (proc != rank) { /* copy to the outgoing buf */ in MatCreateSubMatrices_MPIAIJ_Local()
2251 ctr[proc]++; in MatCreateSubMatrices_MPIAIJ_Local()
2252 *ptr[proc] = irow_i[j]; in MatCreateSubMatrices_MPIAIJ_Local()
2253 ptr[proc]++; in MatCreateSubMatrices_MPIAIJ_Local()
2428 proc = row2proc_i[j]; in MatCreateSubMatrices_MPIAIJ_Local()
2429 if (proc == rank) { in MatCreateSubMatrices_MPIAIJ_Local()
2687 proc = row2proc_i[j]; in MatCreateSubMatrices_MPIAIJ_Local()
2688 if (proc == rank) { in MatCreateSubMatrices_MPIAIJ_Local()