Lines Matching refs:newOwners
3710 PetscSFNode *sremotePoints = NULL, *newLocalPoints = NULL, *newOwners = NULL; in DMPlexCreateSubmeshGeneric_Interpolated() local
3740 PetscCall(PetscMalloc2(pEnd - pStart, &newLocalPoints, numRoots, &newOwners)); in DMPlexCreateSubmeshGeneric_Interpolated()
3746 newOwners[p - pStart].rank = -3; in DMPlexCreateSubmeshGeneric_Interpolated()
3747 newOwners[p - pStart].index = -3; in DMPlexCreateSubmeshGeneric_Interpolated()
3785 newOwners[p].rank = newLocalPoints[p].rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3786 newOwners[p].index = newLocalPoints[p].index; in DMPlexCreateSubmeshGeneric_Interpolated()
3802 … if (rootdegree[subpoints[p] - pStart]) newOwners[subpoints[p] - pStart].rank = rank + size; in DMPlexCreateSubmeshGeneric_Interpolated()
3803 else newOwners[subpoints[p] - pStart].rank = rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3804 newOwners[subpoints[p] - pStart].index = p; in DMPlexCreateSubmeshGeneric_Interpolated()
3807 PetscCall(PetscSFReduceBegin(sfPoint, MPIU_SF_NODE, newLocalPoints, newOwners, MPI_MAXLOC)); in DMPlexCreateSubmeshGeneric_Interpolated()
3808 PetscCall(PetscSFReduceEnd(sfPoint, MPIU_SF_NODE, newLocalPoints, newOwners, MPI_MAXLOC)); in DMPlexCreateSubmeshGeneric_Interpolated()
3810 if (newOwners[p - pStart].rank >= size) newOwners[p - pStart].rank -= size; in DMPlexCreateSubmeshGeneric_Interpolated()
3828 if (newOwners[p].rank >= 0 && newOwners[p].rank != rank) ++nleaves1; in DMPlexCreateSubmeshGeneric_Interpolated()
3833 if (newOwners[p].rank >= 0 && newOwners[p].rank != rank) { in DMPlexCreateSubmeshGeneric_Interpolated()
3835 iremote1[nleaves1].rank = newOwners[p].rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3847 newLocalPoints[p - pStart].rank = newOwners[p - pStart].rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3848 newLocalPoints[p - pStart].index = newOwners[p - pStart].index; in DMPlexCreateSubmeshGeneric_Interpolated()
3851 PetscCall(PetscSFBcastBegin(sfPoint, MPIU_SF_NODE, newOwners, newLocalPoints, MPI_REPLACE)); in DMPlexCreateSubmeshGeneric_Interpolated()
3852 PetscCall(PetscSFBcastEnd(sfPoint, MPIU_SF_NODE, newOwners, newLocalPoints, MPI_REPLACE)); in DMPlexCreateSubmeshGeneric_Interpolated()
3894 PetscCall(PetscFree2(newLocalPoints, newOwners)); in DMPlexCreateSubmeshGeneric_Interpolated()
4091 PetscSFNode *sremotePoints, *newLocalPoints, *newOwners; in DMPlexCreateCohesiveSubmesh_Uninterpolated() local
4105 PetscCall(PetscMalloc2(pEnd - pStart, &newLocalPoints, numRoots, &newOwners)); in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4126 newOwners[p - pStart].rank = -3; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4127 newOwners[p - pStart].index = -3; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4129 newOwners[p - pStart].rank = rank; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4130 newOwners[p - pStart].index = subPoint; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4133 PetscCall(PetscSFReduceBegin(sfPoint, MPIU_SF_NODE, newLocalPoints, newOwners, MPI_MAXLOC)); in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4134 PetscCall(PetscSFReduceEnd(sfPoint, MPIU_SF_NODE, newLocalPoints, newOwners, MPI_MAXLOC)); in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4135 PetscCall(PetscSFBcastBegin(sfPoint, MPIU_SF_NODE, newOwners, newLocalPoints, MPI_REPLACE)); in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4136 PetscCall(PetscSFBcastEnd(sfPoint, MPIU_SF_NODE, newOwners, newLocalPoints, MPI_REPLACE)); in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4155 PetscCall(PetscFree2(newLocalPoints, newOwners)); in DMPlexCreateCohesiveSubmesh_Uninterpolated()