Lines Matching refs:numVertices

12 …DMPlexCreatePartitionerGraph_Overlap(DM dm, PetscInt height, PetscInt *numVertices, PetscInt **off…  in DMPlexCreatePartitionerGraph_Overlap()  argument
30 PetscCall(DMPlexCreateNeighborCSR(dm, height, numVertices, offsets, adjacency)); in DMPlexCreatePartitionerGraph_Overlap()
34 if (!*numVertices) { in DMPlexCreatePartitionerGraph_Overlap()
39 …if (rank) PetscCheck(!*numVertices, PETSC_COMM_SELF, PETSC_ERR_SUP, "Parallel partitioning of unin… in DMPlexCreatePartitionerGraph_Overlap()
62 for (*numVertices = 0, c = cStart; c < cEnd; ++c) { in DMPlexCreatePartitionerGraph_Overlap()
65 (*numVertices)++; in DMPlexCreatePartitionerGraph_Overlap()
67 PetscCall(PetscCalloc1(*numVertices + 1, &vOffsets)); in DMPlexCreatePartitionerGraph_Overlap()
81 PetscCall(PetscMalloc1(vOffsets[*numVertices], &vAdj)); in DMPlexCreatePartitionerGraph_Overlap()
111 … DMPlexCreatePartitionerGraph_Native(DM dm, PetscInt height, PetscInt *numVertices, PetscInt **off… in DMPlexCreatePartitionerGraph_Native() argument
132 PetscCall(DMPlexCreateNeighborCSR(dm, height, numVertices, offsets, adjacency)); in DMPlexCreatePartitionerGraph_Native()
136 if (!*numVertices) { in DMPlexCreatePartitionerGraph_Native()
141 …if (rank) PetscCheck(!*numVertices, PETSC_COMM_SELF, PETSC_ERR_SUP, "Parallel partitioning of unin… in DMPlexCreatePartitionerGraph_Native()
211 for (*numVertices = 0, p = pStart; p < pEnd; p++) { in DMPlexCreatePartitionerGraph_Native()
257 (*numVertices)++; in DMPlexCreatePartitionerGraph_Native()
266 PetscCall(PetscMalloc1(*numVertices + 1, &vOffsets)); in DMPlexCreatePartitionerGraph_Native()
273 vOffsets[*numVertices] = size; in DMPlexCreatePartitionerGraph_Native()
279 PetscCall(PetscSectionSetChart(section, 0, *numVertices)); in DMPlexCreatePartitionerGraph_Native()
280 for (p = 0; p < *numVertices; p++) { in DMPlexCreatePartitionerGraph_Native()
293 PetscCall(PetscMalloc1(*numVertices + 1, &vOffsets)); in DMPlexCreatePartitionerGraph_Native()
294 …for (idx = 0, p = 0; p < *numVertices; p++) PetscCall(PetscSectionGetOffset(section, p, &vOffsets[… in DMPlexCreatePartitionerGraph_Native()
295 vOffsets[*numVertices] = size; in DMPlexCreatePartitionerGraph_Native()
299 for (p = 0; p < *numVertices; p++) { in DMPlexCreatePartitionerGraph_Native()
316 … DMPlexCreatePartitionerGraph_ViaMat(DM dm, PetscInt height, PetscInt *numVertices, PetscInt **off… in DMPlexCreatePartitionerGraph_ViaMat() argument
333 PetscCall(DMPlexCreateNeighborCSR(dm, height, numVertices, offsets, adjacency)); in DMPlexCreatePartitionerGraph_ViaMat()
337 if (!*numVertices) { in DMPlexCreatePartitionerGraph_ViaMat()
342 …if (rank) PetscCheck(!*numVertices, PETSC_COMM_SELF, PETSC_ERR_SUP, "Parallel partitioning of unin… in DMPlexCreatePartitionerGraph_ViaMat()
447 if (numVertices) *numVertices = m; in DMPlexCreatePartitionerGraph_ViaMat()
503 PetscErrorCode DMPlexCreatePartitionerGraph(DM dm, PetscInt height, PetscInt *numVertices, PetscInt… in DMPlexCreatePartitionerGraph() argument
511 …PetscCall(DMPlexCreatePartitionerGraph_ViaMat(dm, height, numVertices, offsets, adjacency, globalN… in DMPlexCreatePartitionerGraph()
514 …PetscCall(DMPlexCreatePartitionerGraph_Native(dm, height, numVertices, offsets, adjacency, globalN… in DMPlexCreatePartitionerGraph()
517 …PetscCall(DMPlexCreatePartitionerGraph_Overlap(dm, height, numVertices, offsets, adjacency, global… in DMPlexCreatePartitionerGraph()
544 PetscErrorCode DMPlexCreateNeighborCSR(DM dm, PetscInt cellHeight, PetscInt *numVertices, PetscInt … in DMPlexCreateNeighborCSR() argument
560 if (numVertices) *numVertices = 0; in DMPlexCreateNeighborCSR()
615 if (numVertices) *numVertices = numCells; in DMPlexCreateNeighborCSR()
716 if (numVertices) *numVertices = numCells; in DMPlexCreateNeighborCSR()
775 PetscInt numVertices = 0; in PetscPartitionerDMPlexPartition() local
781 …PetscCall(DMPlexCreatePartitionerGraph(dm, part->height, &numVertices, &start, &adjacency, &global… in PetscPartitionerDMPlexPartition()
789 for (p = 0; p < pEnd - pStart; p++) numVertices += idxs[p] < 0 ? 0 : 1; in PetscPartitionerDMPlexPartition()
808 PetscCall(PetscSectionSetChart(vertSection, 0, numVertices)); in PetscPartitionerDMPlexPartition()
839 const PetscInt numEdges = start[numVertices]; in PetscPartitionerDMPlexPartition()
843 …for (PetscInt e = 0; e < start[numVertices]; ++e) PetscCall(PetscSectionSetDof(edgeSection, e, 1)); in PetscPartitionerDMPlexPartition()
844 for (PetscInt v = 0; v < numVertices; ++v) { in PetscPartitionerDMPlexPartition()
855 …PetscCall(PetscPartitionerPartition(part, size, numVertices, start, adjacency, vertSection, edgeSe… in PetscPartitionerDMPlexPartition()