Home
last modified time | relevance | path

Searched refs:part_weights (Results 1 – 5 of 5) sorted by relevance

/petsc/src/mat/graphops/partition/impls/hierarchical/
H A Dhierarchical.c41 PetscReal *part_weights; in MatPartitioningApply_Hierarchical() local
96 PetscCall(PetscMalloc1(hpart->ncoarseparts, &part_weights)); in MatPartitioningApply_Hierarchical()
102 part_weights[0] = ((PetscReal)offsets[1]) / part->n; in MatPartitioningApply_Hierarchical()
106 part_weights[i - 1] = ((PetscReal)offsets[i]) / part->n; in MatPartitioningApply_Hierarchical()
144 PetscCall(MatPartitioningSetPartitionWeights(hpart->coarseMatPart, part_weights)); in MatPartitioningApply_Hierarchical()
/petsc/src/mat/graphops/partition/
H A Dpartition.c454 PetscCall(PetscFree((*part)->part_weights)); in MatPartitioningDestroy()
520 PetscCall(PetscFree(part->part_weights)); in MatPartitioningSetPartitionWeights()
521 part->part_weights = (PetscReal *)weights; in MatPartitioningSetPartitionWeights()
603 part->part_weights = NULL; in MatPartitioningCreate()
/petsc/src/mat/graphops/partition/impls/scotch/
H A Dscotch.c290 proc_weight_flg = part->part_weights ? PETSC_TRUE : PETSC_FALSE; in MatPartitioningApply_PTScotch_Private()
333 if (part->part_weights) vwgttab[j] = part->part_weights[j] * nparts; in MatPartitioningApply_PTScotch_Private()
/petsc/src/mat/graphops/partition/impls/pmetis/
H A Dpmetis.c105 if (part->part_weights) { in MatPartitioningApply_Parmetis_Private()
106 tpwgts[i * nparts + j] = (real_t)part->part_weights[i * nparts + j]; in MatPartitioningApply_Parmetis_Private()
/petsc/include/petsc/private/
H A Dmatimpl.h550 PetscReal *part_weights; member