Lines Matching refs:part

36 PetscErrorCode MatPartitioningPTScotchSetImbalance(MatPartitioning part, PetscReal imb)  in MatPartitioningPTScotchSetImbalance()  argument
39 PetscValidHeaderSpecific(part, MAT_PARTITIONING_CLASSID, 1); in MatPartitioningPTScotchSetImbalance()
40 PetscValidLogicalCollectiveReal(part, imb, 2); in MatPartitioningPTScotchSetImbalance()
41 …PetscTryMethod(part, "MatPartitioningPTScotchSetImbalance_C", (MatPartitioning, PetscReal), (part,… in MatPartitioningPTScotchSetImbalance()
45 static PetscErrorCode MatPartitioningPTScotchSetImbalance_PTScotch(MatPartitioning part, PetscReal … in MatPartitioningPTScotchSetImbalance_PTScotch() argument
47 MatPartitioning_PTScotch *scotch = (MatPartitioning_PTScotch *)part->data; in MatPartitioningPTScotchSetImbalance_PTScotch()
52 …PetscCheck(imb >= 0.0 && imb <= 1.0, PetscObjectComm((PetscObject)part), PETSC_ERR_ARG_OUTOFRANGE,… in MatPartitioningPTScotchSetImbalance_PTScotch()
74 PetscErrorCode MatPartitioningPTScotchGetImbalance(MatPartitioning part, PetscReal *imb) in MatPartitioningPTScotchGetImbalance() argument
77 PetscValidHeaderSpecific(part, MAT_PARTITIONING_CLASSID, 1); in MatPartitioningPTScotchGetImbalance()
79 …PetscUseMethod(part, "MatPartitioningPTScotchGetImbalance_C", (MatPartitioning, PetscReal *), (par… in MatPartitioningPTScotchGetImbalance()
83 static PetscErrorCode MatPartitioningPTScotchGetImbalance_PTScotch(MatPartitioning part, PetscReal … in MatPartitioningPTScotchGetImbalance_PTScotch() argument
85 MatPartitioning_PTScotch *scotch = (MatPartitioning_PTScotch *)part->data; in MatPartitioningPTScotchGetImbalance_PTScotch()
119 PetscErrorCode MatPartitioningPTScotchSetStrategy(MatPartitioning part, MPPTScotchStrategyType stra… in MatPartitioningPTScotchSetStrategy() argument
122 PetscValidHeaderSpecific(part, MAT_PARTITIONING_CLASSID, 1); in MatPartitioningPTScotchSetStrategy()
123 PetscValidLogicalCollectiveEnum(part, strategy, 2); in MatPartitioningPTScotchSetStrategy()
124 …PetscTryMethod(part, "MatPartitioningPTScotchSetStrategy_C", (MatPartitioning, MPPTScotchStrategyT… in MatPartitioningPTScotchSetStrategy()
128 static PetscErrorCode MatPartitioningPTScotchSetStrategy_PTScotch(MatPartitioning part, MPPTScotchS… in MatPartitioningPTScotchSetStrategy_PTScotch() argument
130 MatPartitioning_PTScotch *scotch = (MatPartitioning_PTScotch *)part->data; in MatPartitioningPTScotchSetStrategy_PTScotch()
171 PetscErrorCode MatPartitioningPTScotchGetStrategy(MatPartitioning part, MPPTScotchStrategyType *str… in MatPartitioningPTScotchGetStrategy() argument
174 PetscValidHeaderSpecific(part, MAT_PARTITIONING_CLASSID, 1); in MatPartitioningPTScotchGetStrategy()
176 …PetscUseMethod(part, "MatPartitioningPTScotchGetStrategy_C", (MatPartitioning, MPPTScotchStrategyT… in MatPartitioningPTScotchGetStrategy()
180 static PetscErrorCode MatPartitioningPTScotchGetStrategy_PTScotch(MatPartitioning part, MPPTScotchS… in MatPartitioningPTScotchGetStrategy_PTScotch() argument
182 MatPartitioning_PTScotch *scotch = (MatPartitioning_PTScotch *)part->data; in MatPartitioningPTScotchGetStrategy_PTScotch()
208 static PetscErrorCode MatPartitioningView_PTScotch(MatPartitioning part, PetscViewer viewer) in MatPartitioningView_PTScotch() argument
210 MatPartitioning_PTScotch *scotch = (MatPartitioning_PTScotch *)part->data; in MatPartitioningView_PTScotch()
243 static PetscErrorCode MatPartitioningSetFromOptions_PTScotch(MatPartitioning part, PetscOptionItems… in MatPartitioningSetFromOptions_PTScotch() argument
247 MatPartitioning_PTScotch *scotch = (MatPartitioning_PTScotch *)part->data; in MatPartitioningSetFromOptions_PTScotch()
251 PetscCall(MatPartitioningPTScotchGetStrategy(part, &strat)); in MatPartitioningSetFromOptions_PTScotch()
254 if (flag) PetscCall(MatPartitioningPTScotchSetStrategy(part, strat)); in MatPartitioningSetFromOptions_PTScotch()
256 if (flag) PetscCall(MatPartitioningPTScotchSetImbalance(part, r)); in MatPartitioningSetFromOptions_PTScotch()
261 static PetscErrorCode MatPartitioningApply_PTScotch_Private(MatPartitioning part, PetscBool useND, … in MatPartitioningApply_PTScotch_Private() argument
264 MatPartitioning_PTScotch *scotch = (MatPartitioning_PTScotch *)part->data; in MatPartitioningApply_PTScotch_Private()
266 Mat mat = part->adj; in MatPartitioningApply_PTScotch_Private()
273 … *locals, *velotab, *veloloctab, *edloloctab, vertlocnbr, edgelocnbr, nparts = part->n; in MatPartitioningApply_PTScotch_Private()
276 PetscCall(PetscObjectGetComm((PetscObject)part, &pcomm)); in MatPartitioningApply_PTScotch_Private()
290 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()
348 veloloctab = part->vertex_weights; in MatPartitioningApply_PTScotch_Private()
349 edloloctab = part->use_edge_weights ? adj->values : NULL; in MatPartitioningApply_PTScotch_Private()
436 static PetscErrorCode MatPartitioningApply_PTScotch(MatPartitioning part, IS *partitioning) in MatPartitioningApply_PTScotch() argument
439 PetscCall(MatPartitioningApply_PTScotch_Private(part, PETSC_FALSE, partitioning)); in MatPartitioningApply_PTScotch()
443 static PetscErrorCode MatPartitioningApplyND_PTScotch(MatPartitioning part, IS *partitioning) in MatPartitioningApplyND_PTScotch() argument
446 PetscCall(MatPartitioningApply_PTScotch_Private(part, PETSC_TRUE, partitioning)); in MatPartitioningApplyND_PTScotch()
450 static PetscErrorCode MatPartitioningDestroy_PTScotch(MatPartitioning part) in MatPartitioningDestroy_PTScotch() argument
452 MatPartitioning_PTScotch *scotch = (MatPartitioning_PTScotch *)part->data; in MatPartitioningDestroy_PTScotch()
457 …PetscCall(PetscObjectComposeFunction((PetscObject)part, "MatPartitioningPTScotchSetImbalance_C", N… in MatPartitioningDestroy_PTScotch()
458 …PetscCall(PetscObjectComposeFunction((PetscObject)part, "MatPartitioningPTScotchGetImbalance_C", N… in MatPartitioningDestroy_PTScotch()
459 …PetscCall(PetscObjectComposeFunction((PetscObject)part, "MatPartitioningPTScotchSetStrategy_C", NU… in MatPartitioningDestroy_PTScotch()
460 …PetscCall(PetscObjectComposeFunction((PetscObject)part, "MatPartitioningPTScotchGetStrategy_C", NU… in MatPartitioningDestroy_PTScotch()
473 PETSC_EXTERN PetscErrorCode MatPartitioningCreate_PTScotch(MatPartitioning part) in MatPartitioningCreate_PTScotch() argument
479 part->data = (void *)scotch; in MatPartitioningCreate_PTScotch()
484 part->ops->apply = MatPartitioningApply_PTScotch; in MatPartitioningCreate_PTScotch()
485 part->ops->applynd = MatPartitioningApplyND_PTScotch; in MatPartitioningCreate_PTScotch()
486 part->ops->view = MatPartitioningView_PTScotch; in MatPartitioningCreate_PTScotch()
487 part->ops->setfromoptions = MatPartitioningSetFromOptions_PTScotch; in MatPartitioningCreate_PTScotch()
488 part->ops->destroy = MatPartitioningDestroy_PTScotch; in MatPartitioningCreate_PTScotch()
490 …PetscCall(PetscObjectComposeFunction((PetscObject)part, "MatPartitioningPTScotchSetImbalance_C", M… in MatPartitioningCreate_PTScotch()
491 …PetscCall(PetscObjectComposeFunction((PetscObject)part, "MatPartitioningPTScotchGetImbalance_C", M… in MatPartitioningCreate_PTScotch()
492 …PetscCall(PetscObjectComposeFunction((PetscObject)part, "MatPartitioningPTScotchSetStrategy_C", Ma… in MatPartitioningCreate_PTScotch()
493 …PetscCall(PetscObjectComposeFunction((PetscObject)part, "MatPartitioningPTScotchGetStrategy_C", Ma… in MatPartitioningCreate_PTScotch()