Lines Matching refs:owners

566   PetscInt    *owners = map->range;  in PetscLayoutMapLocal()  local
587 …if (idx < owners[p] || owners[p + 1] <= idx) { /* short-circuit the search if the last p owns this… in PetscLayoutMapLocal()
591 ridxs[nleaves].index = idxs[r] - owners[p]; in PetscLayoutMapLocal()
733 PetscSFNode *owners, *buffer, *iremote; in PetscSFCreateByMatchingIndices() local
774 PetscCall(PetscMalloc1(numRootIndices, &owners)); in PetscSFCreateByMatchingIndices()
776 owners[i].rank = rank; in PetscSFCreateByMatchingIndices()
777 owners[i].index = rootLocalOffset + (rootLocalIndices ? rootLocalIndices[i] : i); in PetscSFCreateByMatchingIndices()
783 PetscCall(PetscSFReduceBegin(sf1, MPIU_SF_NODE, owners, buffer, MPI_MAXLOC)); in PetscSFCreateByMatchingIndices()
784 PetscCall(PetscSFReduceEnd(sf1, MPIU_SF_NODE, owners, buffer, MPI_MAXLOC)); in PetscSFCreateByMatchingIndices()
787 PetscCall(PetscFree(owners)); in PetscSFCreateByMatchingIndices()
789 PetscCall(PetscMalloc1(numLeafIndices, &owners)); in PetscSFCreateByMatchingIndices()
791 PetscCall(PetscSFBcastBegin(sf1, MPIU_SF_NODE, buffer, owners, MPI_REPLACE)); in PetscSFCreateByMatchingIndices()
792 PetscCall(PetscSFBcastEnd(sf1, MPIU_SF_NODE, buffer, owners, MPI_REPLACE)); in PetscSFCreateByMatchingIndices()
793 …for (i = 0; i < numLeafIndices; ++i) PetscCheck(owners[i].rank >= 0, PETSC_COMM_SELF, PETSC_ERR_AR… in PetscSFCreateByMatchingIndices()
802 if (owners[i].rank != rank) ++nleaves; in PetscSFCreateByMatchingIndices()
806 if (owners[i].rank != rank) { in PetscSFCreateByMatchingIndices()
808 iremote[nleaves].rank = owners[i].rank; in PetscSFCreateByMatchingIndices()
809 iremote[nleaves].index = owners[i].index; in PetscSFCreateByMatchingIndices()
813 PetscCall(PetscFree(owners)); in PetscSFCreateByMatchingIndices()
818 iremote = owners; in PetscSFCreateByMatchingIndices()