Searched refs:use_edge_weights (Results 1 – 8 of 8) sorted by relevance
| /petsc/src/mat/tutorials/ |
| H A D | ex15.c | 11 PetscBool set_vweights = PETSC_FALSE, use_edge_weights = PETSC_FALSE; in main() local 26 PetscCall(PetscOptionsGetBool(NULL, NULL, "-test_use_edge_weights", &use_edge_weights, NULL)); in main() 41 vals[1] = use_edge_weights ? 2.0 : 1.0; in main() 50 vals[0] = use_edge_weights ? 3.0 : 1.0; in main() 62 vals[0] = use_edge_weights ? (cols[0] == 0 ? 2.0 : 5.0) : 1.0; in main() 64 vals[2] = use_edge_weights ? (cols[2] == N - 1 ? 3.0 : 5.0) : 1.0; in main() 75 if (use_edge_weights) { in main() 76 PetscCall(MatPartitioningSetUseEdgeWeights(part, use_edge_weights)); in main() 78 PetscCall(MatPartitioningGetUseEdgeWeights(part, &use_edge_weights)); in main() 79 …PetscCheck(use_edge_weights, comm, PETSC_ERR_ARG_INCOMP, "use_edge_weights flag does not setup cor… in main()
|
| /petsc/src/mat/graphops/partition/ |
| H A D | partition.c | 543 PetscErrorCode MatPartitioningSetUseEdgeWeights(MatPartitioning part, PetscBool use_edge_weights) in MatPartitioningSetUseEdgeWeights() argument 547 part->use_edge_weights = use_edge_weights; in MatPartitioningSetUseEdgeWeights() 567 PetscErrorCode MatPartitioningGetUseEdgeWeights(MatPartitioning part, PetscBool *use_edge_weights) in MatPartitioningGetUseEdgeWeights() argument 571 PetscAssertPointer(use_edge_weights, 2); in MatPartitioningGetUseEdgeWeights() 572 *use_edge_weights = part->use_edge_weights; in MatPartitioningGetUseEdgeWeights() 604 part->use_edge_weights = PETSC_FALSE; /* By default we don't use edge weights */ in MatPartitioningCreate() 789 …hts", "whether or not to use edge weights", NULL, part->use_edge_weights, &part->use_edge_weights,… in MatPartitioningSetFromOptions()
|
| /petsc/src/mat/graphops/partition/impls/hierarchical/ |
| H A D | hierarchical.c | 52 PetscBool use_edge_weights; in MatPartitioningApply_Hierarchical() local 141 PetscCall(MatPartitioningGetUseEdgeWeights(part, &use_edge_weights)); in MatPartitioningApply_Hierarchical() 142 PetscCall(MatPartitioningSetUseEdgeWeights(hpart->coarseMatPart, use_edge_weights)); in MatPartitioningApply_Hierarchical() 201 PetscCall(MatPartitioningSetUseEdgeWeights(hpart->fineMatPart, use_edge_weights)); in MatPartitioningApply_Hierarchical()
|
| /petsc/src/mat/graphops/partition/impls/pmetis/ |
| H A D | pmetis.c | 94 if (adj->values && part->use_edge_weights && !part->vertex_weights) wgtflag = 1; in MatPartitioningApply_Parmetis_Private() 96 if (part->vertex_weights && adj->values && part->use_edge_weights) wgtflag = 3; in MatPartitioningApply_Parmetis_Private()
|
| /petsc/src/mat/graphops/partition/impls/party/ |
| H A D | party.c | 41 …PetscCheck(!part->use_edge_weights, PetscObjectComm((PetscObject)part), PETSC_ERR_SUP, "Party does… in MatPartitioningApply_Party()
|
| /petsc/src/mat/graphops/partition/impls/scotch/ |
| H A D | scotch.c | 349 edloloctab = part->use_edge_weights ? adj->values : NULL; in MatPartitioningApply_PTScotch_Private()
|
| /petsc/src/mat/graphops/partition/impls/chaco/ |
| H A D | chaco.c | 76 …PetscCheck(!part->use_edge_weights, PetscObjectComm((PetscObject)part), PETSC_ERR_SUP, "Chaco does… in MatPartitioningApply_Chaco()
|
| /petsc/include/petsc/private/ |
| H A D | matimpl.h | 554 PetscBool use_edge_weights; /* A flag indicates whether or not to use edge weights */ member
|