Home
last modified time | relevance | path

Searched refs:use_edge_weights (Results 1 – 8 of 8) sorted by relevance

/petsc/src/mat/tutorials/
H A Dex15.c11 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 Dpartition.c543 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 Dhierarchical.c52 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 Dpmetis.c94 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 Dparty.c41 …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 Dscotch.c349 edloloctab = part->use_edge_weights ? adj->values : NULL; in MatPartitioningApply_PTScotch_Private()
/petsc/src/mat/graphops/partition/impls/chaco/
H A Dchaco.c76 …PetscCheck(!part->use_edge_weights, PetscObjectComm((PetscObject)part), PETSC_ERR_SUP, "Chaco does… in MatPartitioningApply_Chaco()
/petsc/include/petsc/private/
H A Dmatimpl.h554 PetscBool use_edge_weights; /* A flag indicates whether or not to use edge weights */ member