Home
last modified time | relevance | path

Searched refs:leafPoints (Results 1 – 2 of 2) sorted by relevance

/petsc/src/dm/label/
H A Ddmlabel.c2107 PetscSFNode *rootPoints, *leafPoints; in DMLabelGather() local
2140 PetscCall(PetscMalloc1(nroots, &leafPoints)); in DMLabelGather()
2141 for (p = 0; p < nroots; ++p) leafPoints[p].rank = leafPoints[p].index = -1; in DMLabelGather()
2145 leafPoints[ilp].index = ilp; in DMLabelGather()
2146 leafPoints[ilp].rank = rank; in DMLabelGather()
2152 PetscCall(PetscSFGatherBegin(sf, MPIU_SF_NODE, leafPoints, rootPoints)); in DMLabelGather()
2153 PetscCall(PetscSFGatherEnd(sf, MPIU_SF_NODE, leafPoints, rootPoints)); in DMLabelGather()
2167 PetscCall(PetscFree(leafPoints)); in DMLabelGather()
/petsc/src/dm/impls/plex/
H A Dplexpartition.c1254 PetscSFNode *rootPoints, *leafPoints; in DMPlexPartitionLabelInvert() local
1336 PetscCall(PetscMalloc1(leafSize, &leafPoints)); in DMPlexPartitionLabelInvert()
1337 …PetscCallMPI(MPI_Alltoallv(rootPoints, scounts, sdispls, MPIU_SF_NODE, leafPoints, rcounts, rdispl… in DMPlexPartitionLabelInvert()
1358 …tributeData(dm, procSF, rootSection, MPIU_SF_NODE, rootPoints, leafSection, (void **)&leafPoints)); in DMPlexPartitionLabelInvert()
1364 …= 0; p < leafSize; p++) PetscCall(DMLabelSetValue(leafLabel, leafPoints[p].index, leafPoints[p].ra… in DMPlexPartitionLabelInvert()
1370 PetscCall(PetscFree(leafPoints)); in DMPlexPartitionLabelInvert()