Lines Matching refs:remoteCells
121 PetscInt *adjCells = NULL, *remoteCells = NULL; in DMPlexCreatePartitionerGraph_Native() local
166 PetscCall(PetscCalloc2(nroots, &adjCells, nroots, &remoteCells)); in DMPlexCreatePartitionerGraph_Native()
204 for (l = 0; l < nroots; ++l) remoteCells[l] = -1; in DMPlexCreatePartitionerGraph_Native()
205 PetscCall(PetscSFBcastBegin(dm->sf, MPIU_INT, adjCells, remoteCells, MPI_REPLACE)); in DMPlexCreatePartitionerGraph_Native()
206 PetscCall(PetscSFBcastEnd(dm->sf, MPIU_INT, adjCells, remoteCells, MPI_REPLACE)); in DMPlexCreatePartitionerGraph_Native()
207 PetscCall(PetscSFReduceBegin(dm->sf, MPIU_INT, adjCells, remoteCells, MPI_MAX)); in DMPlexCreatePartitionerGraph_Native()
208 PetscCall(PetscSFReduceEnd(dm->sf, MPIU_INT, adjCells, remoteCells, MPI_MAX)); in DMPlexCreatePartitionerGraph_Native()
217 if (remoteCells) { in DMPlexCreatePartitionerGraph_Native()
226 if (remoteCells[point] >= 0 && remoteCells[point] != gp) { in DMPlexCreatePartitionerGraph_Native()
230 *pBuf = remoteCells[point]; in DMPlexCreatePartitionerGraph_Native()
236 if (remoteCells[child] >= 0 && remoteCells[child] != gp) { in DMPlexCreatePartitionerGraph_Native()
240 *pBuf = remoteCells[child]; in DMPlexCreatePartitionerGraph_Native()
260 PetscCall(PetscFree2(adjCells, remoteCells)); in DMPlexCreatePartitionerGraph_Native()