Lines Matching refs:ilocal
255 const PetscInt *ilocal; in PetscSFCheckGraphValid_Private() local
260 PetscCall(PetscSFGetGraph(sf, NULL, &nleaves, &ilocal, &iremote)); in PetscSFCheckGraphValid_Private()
265 const PetscInt leaf = ilocal ? ilocal[i] : i; in PetscSFCheckGraphValid_Private()
456 PetscErrorCode PetscSFSetGraph(PetscSF sf, PetscInt nroots, PetscInt nleaves, PetscInt ilocal[], Pe… in PetscSFSetGraph() argument
462 if (nleaves > 0 && ilocal) PetscAssertPointer(ilocal, 4); in PetscSFSetGraph()
486 if (localmode == PETSC_COPY_VALUES && ilocal) { in PetscSFSetGraph()
490 PetscCall(PetscArraycpy(tlocal, ilocal, nleaves)); in PetscSFSetGraph()
491 ilocal = tlocal; in PetscSFSetGraph()
501 if (nleaves && ilocal) { in PetscSFSetGraph()
504 PetscCall(PetscSortIntWithDataArray(nleaves, ilocal, iremote, sizeof(PetscSFNode), &work)); in PetscSFSetGraph()
505 PetscCall(PetscSortedCheckDupsInt(nleaves, ilocal, &unique)); in PetscSFSetGraph()
508 sf->minleaf = ilocal[0]; in PetscSFSetGraph()
509 sf->maxleaf = ilocal[nleaves - 1]; in PetscSFSetGraph()
510 contiguous = (PetscBool)(unique && ilocal[0] == 0 && ilocal[nleaves - 1] == nleaves - 1); in PetscSFSetGraph()
520 ilocal = NULL; in PetscSFSetGraph()
522 PetscCall(PetscFree(ilocal)); in PetscSFSetGraph()
525 sf->mine = ilocal; in PetscSFSetGraph()
529 sf->mine_alloc = ilocal; in PetscSFSetGraph()
672 const PetscInt *ilocal; in PetscSFCreateInverseSF() local
680 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, &ilocal, NULL)); in PetscSFCreateInverseSF()
751 const PetscInt *ilocal; in PetscSFDuplicate() local
753 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, &ilocal, &iremote)); in PetscSFDuplicate()
754 …PetscCall(PetscSFSetGraph(*newsf, nroots, nleaves, (PetscInt *)ilocal, PETSC_COPY_VALUES, (PetscSF… in PetscSFDuplicate()
804 …etGraph(PetscSF sf, PetscInt *nroots, PetscInt *nleaves, const PetscInt *ilocal[], const PetscSFNo… in PetscSFGetGraph() argument
809 PetscCall(sf->ops->GetGraph(sf, nroots, nleaves, ilocal, iremote)); in PetscSFGetGraph()
813 if (ilocal) *ilocal = sf->mine; in PetscSFGetGraph()
1342 const PetscInt *ilocal; in PetscSFCreateEmbeddedRootSF() local
1357 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, &ilocal, &iremote)); in PetscSFCreateEmbeddedRootSF()
1381 j = ilocal ? ilocal[i] : i; in PetscSFCreateEmbeddedRootSF()
1390 j = ilocal ? ilocal[i] : i; in PetscSFCreateEmbeddedRootSF()
1428 const PetscInt *ilocal; in PetscSFCreateEmbeddedLeafSF() local
1448 PetscCall(PetscSFGetGraph(sf, &nroots, NULL, &ilocal, &iremote)); in PetscSFCreateEmbeddedLeafSF()
1453 new_ilocal[i] = ilocal ? ilocal[l] : l; in PetscSFCreateEmbeddedLeafSF()
2003 const PetscInt *ilocal = NULL; in PetscSFCheckLeavesUnique_Private() local
2008 PetscCall(PetscSFGetGraph(sf, NULL, &nleaves, &ilocal, NULL)); in PetscSFCheckLeavesUnique_Private()
2011 const PetscInt leaf = ilocal ? ilocal[i] : i; in PetscSFCheckLeavesUnique_Private()
2243 const PetscInt *ilocal; in PetscSFCreateLocalSF_Private() local
2260 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, &ilocal, &iremote)); in PetscSFCreateLocalSF_Private()
2271 lilocal[j] = ilocal ? ilocal[i] : i; /* ilocal=NULL for contiguous storage */ in PetscSFCreateLocalSF_Private()
2549 const PetscInt *ilocal; in PetscSFConcatenate() local
2551 PetscCall(PetscSFGetGraph(sfs[s], NULL, NULL, &ilocal, NULL)); in PetscSFConcatenate()
2552 if (ilocal) { in PetscSFConcatenate()
2566 const PetscInt *ilocal; in PetscSFConcatenate() local
2570 PetscCall(PetscSFGetGraph(sfs[s], NULL, &nleaves_l, &ilocal, NULL)); in PetscSFConcatenate()
2571 for (i = 0; i < nleaves_l; i++) ilocal_l[i] = (ilocal ? ilocal[i] : i) + leafOffsets[s]; in PetscSFConcatenate()