Searched refs:numVerticesGlobal (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/dm/partitioner/impls/matpart/ |
| H A D | partmatpart.c | 94 PetscInt numVerticesGlobal, numEdges; in PetscPartitionerPartition_MatPartitioning() local 103 numVerticesGlobal = PETSC_DECIDE; in PetscPartitionerPartition_MatPartitioning() 104 PetscCall(PetscSplitOwnership(comm, &numVertices, &numVerticesGlobal)); in PetscPartitionerPartition_MatPartitioning() 114 PetscCall(MatCreateMPIAdj(comm, numVertices, numVerticesGlobal, i, j, NULL, &matadj)); in PetscPartitionerPartition_MatPartitioning()
|
| /petsc/src/dm/partitioner/impls/simple/ |
| H A D | partsimple.c | 121 PetscInt np, *tpwgts = NULL, sumw = 0, numVerticesGlobal = 0; in PetscPartitionerPartition_Simple() local 133 PetscCallMPI(MPIU_Allreduce(&numVertices, &numVerticesGlobal, 1, MPIU_INT, MPI_SUM, comm)); in PetscPartitionerPartition_Simple() 141 for (np = 0; np < nparts; ++np) tpwgts[np] = (tpwgts[np] * numVerticesGlobal) / sumw; in PetscPartitionerPartition_Simple() 149 if (sumw != numVerticesGlobal) tpwgts[mp] += numVerticesGlobal - sumw; in PetscPartitionerPartition_Simple() 169 PetscCall(VecSetSizes(v, numVertices, numVerticesGlobal)); in PetscPartitionerPartition_Simple()
|