Lines Matching refs:recvRowPerm
466 PetscInt *recvRowPerm, *recvColSorted;
468 PetscCall(PetscMalloc4(recvRowCnt, &recvRowPerm, nroots, &recvColSorted, nroots, &recvNzPerm, nroots, &recvNzPermSorted));
471 for (PetscInt i = 0; i < recvRowCnt; i++) recvRowPerm[i] = i; // put up a permutation array, so that after sorting we know where to get a row in recvCol[]
472 PetscCall(PetscSortIntWithPermutation(recvRowCnt, irootloc, recvRowPerm)); // irootloc[] (owned by ownerSF) won't be changed
486 PetscInt curRowIdx = irootloc[recvRowPerm[iter]];
489 while (iter + dupRows < recvRowCnt && irootloc[recvRowPerm[iter + dupRows]] == curRowIdx) dupRows++;
498 PetscInt i = recvRowPerm[iter + d];
555 PetscInt curRowIdx = irootloc[recvRowPerm[iter]]; // current row idx
559 while (iter + dupRows < recvRowCnt && irootloc[recvRowPerm[iter + dupRows]] == curRowIdx) dupRows++;
561 PetscInt i = recvRowPerm[iter + d];
591 PetscCall(PetscFree4(recvRowPerm, recvColSorted, recvNzPerm, recvNzPermSorted));