Skip to content

Commit

Permalink
Removing 'ClusteringAlgorithm::'
Browse files Browse the repository at this point in the history
  • Loading branch information
eeprude committed Nov 27, 2023
1 parent 16e327e commit 89d149e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sparse/impl/KokkosSparse_cluster_gauss_seidel_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,23 +555,22 @@ class ClusterGaussSeidel {
}
nnz_view_t vertClusters;
auto clusterAlgo = gsHandle->get_clustering_algo();
if (clusterAlgo == ClusteringAlgorithm::CLUSTER_DEFAULT)
clusterAlgo = ClusteringAlgorithm::CLUSTER_MIS2;
if (clusterAlgo == CLUSTER_DEFAULT) clusterAlgo = CLUSTER_MIS2;
switch (clusterAlgo) {
case ClusteringAlgorithm::CLUSTER_MIS2: {
case CLUSTER_MIS2: {
vertClusters =
KokkosGraph::graph_mis2_aggregate<MyExecSpace, raw_rowmap_t,
raw_colinds_t, nnz_view_t>(
raw_sym_xadj, raw_sym_adj, numClusters);
break;
}
case ClusteringAlgorithm::CLUSTER_BALLOON: {
case CLUSTER_BALLOON: {
BalloonClustering<HandleType, raw_rowmap_t, raw_colinds_t> balloon(
num_rows, raw_sym_xadj, raw_sym_adj);
vertClusters = balloon.run(clusterSize);
break;
}
case ClusteringAlgorithm::CLUSTER_DEFAULT: {
case CLUSTER_DEFAULT: {
throw std::logic_error(
"Logic to choose default clustering algorithm is incorrect");
}
Expand Down

0 comments on commit 89d149e

Please sign in to comment.