Lines Matching refs:jbuf
493 PetscInt *jbuf = recvColSorted + FnzDups;
495 PetscInt *jbuf2 = jbuf; // temp pointers
506 PetscCall(PetscIntSortSemiOrderedWithArray(nz, jbuf, pbuf)); // It could be improved with k-way merge sort, since the rows are already sorted
508 // Scan column indices (in jbuf[0,nz), might have dups) of this row, and see how many go to Fd and how many go to Fo
511 PetscInt curColIdx = jbuf[cur];
514 while (cur + dups < nz && jbuf[cur + dups] == curColIdx) dups++;
565 PetscInt *jbuf = recvColSorted + FnzDups;
566 // Scan columns (in jbuf[0,nz) of this row, copy them and their permutation to j[] and jperm[] of Fd and Fo
569 PetscInt curColIdx = jbuf[cur];
572 while (cur + dups < nz && jbuf[cur + dups] == curColIdx) dups++;
840 PetscInt *jbuf, *Fj;
841 PetscCall(PetscMalloc2(nroots, &jbuf, Fnz, &Fj));
844 PetscInt *buf = &jbuf[rowoffset[k]];
857 PetscCall(PetscSFBcastWithMemTypeBegin(bcastSF, MPIU_INT, PETSC_MEMTYPE_HOST, jbuf, PETSC_MEMTYPE_HOST, Fj, MPI_REPLACE));
858 PetscCall(PetscSFBcastEnd(bcastSF, MPIU_INT, jbuf, Fj, MPI_REPLACE));
902 PetscCall(PetscFree2(jbuf, Fj));