Lines Matching refs:adj

18   PetscInt       *adj = NULL, *vOffsets = NULL, *vAdj = NULL;  in DMPlexCreatePartitionerGraph_Overlap()  local
72 PetscCall(DMPlexGetAdjacency(ovdm, c, &adjSize, &adj)); in DMPlexCreatePartitionerGraph_Overlap()
74 const PetscInt point = adj[a]; in DMPlexCreatePartitionerGraph_Overlap()
87 PetscCall(DMPlexGetAdjacency(ovdm, c, &adjSize, &adj)); in DMPlexCreatePartitionerGraph_Overlap()
89 const PetscInt point = adj[a]; in DMPlexCreatePartitionerGraph_Overlap()
97 PetscCall(PetscFree(adj)); in DMPlexCreatePartitionerGraph_Overlap()
114 PetscInt *adj = NULL, *vOffsets = NULL, *graph = NULL; in DMPlexCreatePartitionerGraph_Native() local
247 PetscCall(DMPlexGetAdjacency(dm, p, &adjSize, &adj)); in DMPlexCreatePartitionerGraph_Native()
249 const PetscInt point = adj[a]; in DMPlexCreatePartitionerGraph_Native()
259 PetscCall(PetscFree(adj)); in DMPlexCreatePartitionerGraph_Native()
549 PetscInt *off, *adj; in DMPlexCreateNeighborCSR() local
593 PetscCall(PetscMalloc1(off[numCells], &adj)); in DMPlexCreateNeighborCSR()
607 adj[tmp[support[0] - cStart]++] = support[1]; in DMPlexCreateNeighborCSR()
608 adj[tmp[support[1] - cStart]++] = support[0]; in DMPlexCreateNeighborCSR()
617 if (adjacency) *adjacency = adj; in DMPlexCreateNeighborCSR()
677 PetscCall(PetscMalloc1(off[numCells], &adj)); in DMPlexCreateNeighborCSR()
709 adj[off[cell - cStart] + cellOffset] = neighborCells[n]; in DMPlexCreateNeighborCSR()
718 if (adjacency) *adjacency = adj; in DMPlexCreateNeighborCSR()
1140 PetscInt *adj = NULL; in DMPlexPartitionLabelAdjacency() local
1154 PetscCall(DMPlexGetAdjacency(dm, points[p], &adjSize, &adj)); in DMPlexPartitionLabelAdjacency()
1155 for (a = 0; a < adjSize; ++a) PetscCall(DMLabelSetValue(label, adj[a], rank)); in DMPlexPartitionLabelAdjacency()
1162 PetscCall(PetscFree(adj)); in DMPlexPartitionLabelAdjacency()