Lines Matching refs:newLocalPoints
3710 PetscSFNode *sremotePoints = NULL, *newLocalPoints = NULL, *newOwners = NULL; in DMPlexCreateSubmeshGeneric_Interpolated() local
3740 PetscCall(PetscMalloc2(pEnd - pStart, &newLocalPoints, numRoots, &newOwners)); in DMPlexCreateSubmeshGeneric_Interpolated()
3742 newLocalPoints[p].rank = -2; in DMPlexCreateSubmeshGeneric_Interpolated()
3743 newLocalPoints[p].index = -2; in DMPlexCreateSubmeshGeneric_Interpolated()
3759 newLocalPoints[point - pStart].rank = rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3760 newLocalPoints[point - pStart].index = p; in DMPlexCreateSubmeshGeneric_Interpolated()
3779 if (newLocalPoints[p - pStart].rank < size) newLocalPoints[p - pStart].rank += size; in DMPlexCreateSubmeshGeneric_Interpolated()
3785 newOwners[p].rank = newLocalPoints[p].rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3786 newOwners[p].index = newLocalPoints[p].index; in DMPlexCreateSubmeshGeneric_Interpolated()
3795 newLocalPoints[point - pStart].rank = rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3796 newLocalPoints[point - pStart].index = subpoint; 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()
3818 newLocalPoints[point - pStart].index = point; in DMPlexCreateSubmeshGeneric_Interpolated()
3825 … PetscCall(PetscSFReduceBegin(sfPoint, MPIU_SF_NODE, newLocalPoints, newOwners1, MPI_MAXLOC)); in DMPlexCreateSubmeshGeneric_Interpolated()
3826 PetscCall(PetscSFReduceEnd(sfPoint, MPIU_SF_NODE, newLocalPoints, newOwners1, MPI_MAXLOC)); 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()
3857 … if (newLocalPoints[point - pStart].rank >= 0 && newLocalPoints[point - pStart].rank != rank) ++sl; in DMPlexCreateSubmeshGeneric_Interpolated()
3864 … if (newLocalPoints[point - pStart].rank >= 0 && newLocalPoints[point - pStart].rank != rank) { in DMPlexCreateSubmeshGeneric_Interpolated()
3866 sremotePoints[sl].rank = newLocalPoints[point - pStart].rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3867 sremotePoints[sl].index = newLocalPoints[point - pStart].index; in DMPlexCreateSubmeshGeneric_Interpolated()
3881 if (newLocalPoints[point].rank == rank) { in DMPlexCreateSubmeshGeneric_Interpolated()
3886 sremotePoints[sl].rank = newLocalPoints[point].rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3887 sremotePoints[sl].index = newLocalPoints[point].index; 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()
4107 newLocalPoints[p].rank = -2; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4108 newLocalPoints[p].index = -2; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4117 newLocalPoints[point - pStart].rank = rank; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4118 newLocalPoints[point - 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()
4144 if (newLocalPoints[point].rank == rank) { in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4149 sremotePoints[sl].rank = newLocalPoints[point].rank; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4150 sremotePoints[sl].index = newLocalPoints[point].index; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4155 PetscCall(PetscFree2(newLocalPoints, newOwners)); in DMPlexCreateCohesiveSubmesh_Uninterpolated()