From b949696e44bcb748875173386ec00df1dd383550 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 23 Jul 2022 08:42:22 -0700 Subject: [PATCH] sfdpgen: remove unimplemented 'DistanceMatrix_restrict_filtering' --- lib/sfdpgen/Multilevel.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/sfdpgen/Multilevel.c b/lib/sfdpgen/Multilevel.c index 8cdb238d3..2ca931453 100644 --- a/lib/sfdpgen/Multilevel.c +++ b/lib/sfdpgen/Multilevel.c @@ -814,13 +814,6 @@ static void maximal_independent_edge_set_heavest_edge_pernode_scaled(SparseMatri } } -static SparseMatrix DistanceMatrix_restrict_filtering(int *mask, int is_C, int is_F, SparseMatrix D){ - /* max independent vtx set based coarsening. Coarsen nodes has mask >= is_C. Fine nodes == is_F. */ - if (!D) return NULL; - assert(0);/* not yet implemented! */ - return NULL; -} - static void Multilevel_coarsen_internal(SparseMatrix A, SparseMatrix *cA, SparseMatrix D, SparseMatrix *cD, double *node_wgt, double **cnode_wgt, SparseMatrix *P, SparseMatrix *R, Multilevel_control ctrl, int *coarsen_scheme_used){ @@ -1059,7 +1052,10 @@ static void Multilevel_coarsen_internal(SparseMatrix A, SparseMatrix *cA, Sparse SparseMatrix_set_pattern_symmetric(*cA); *cA = SparseMatrix_remove_diagonal(*cA); - *cD = DistanceMatrix_restrict_filtering(vset, MAX_IND_VTX_SET_C, MAX_IND_VTX_SET_F, D); + // TODO: restrict filtering, the operation that would happen here, has not + // been implemented + assert(!D); + *cD = NULL; break; default: goto RETURN; -- 2.40.0