Lines Matching refs:adjCells

121   PetscInt       *adjCells = NULL, *remoteCells = NULL;  in DMPlexCreatePartitionerGraph_Native()  local
166 PetscCall(PetscCalloc2(nroots, &adjCells, nroots, &remoteCells)); in DMPlexCreatePartitionerGraph_Native()
168 for (l = 0; l < nroots; ++l) adjCells[l] = -3; in DMPlexCreatePartitionerGraph_Native()
175 if (supportSize == 1) adjCells[f] = DMPlex_GlobalID(cellNum[support[0] - pStart]); in DMPlexCreatePartitionerGraph_Native()
178 if (p >= 0) adjCells[f] = DMPlex_GlobalID(cellNum[support[1] - pStart]); in DMPlexCreatePartitionerGraph_Native()
180 if (p >= 0) adjCells[f] = DMPlex_GlobalID(cellNum[support[0] - pStart]); in DMPlexCreatePartitionerGraph_Native()
193 if (supportSize == 1) adjCells[child] = DMPlex_GlobalID(cellNum[support[0] - pStart]); in DMPlexCreatePartitionerGraph_Native()
196 if (p >= 0) adjCells[child] = DMPlex_GlobalID(cellNum[support[1] - pStart]); in DMPlexCreatePartitionerGraph_Native()
198 if (p >= 0) adjCells[child] = DMPlex_GlobalID(cellNum[support[0] - pStart]); 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()
260 PetscCall(PetscFree2(adjCells, remoteCells)); in DMPlexCreatePartitionerGraph_Native()