From 469c753189845103f80ec05559ee2029adc0f6c5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 23 May 2022 19:46:34 -0700 Subject: [PATCH] sfdpgen: remove 'node_weights' from 'post_process_smoothing' This parameter is always passed as `NULL`. --- lib/sfdpgen/post_process.c | 4 ++-- lib/sfdpgen/post_process.h | 2 +- lib/sfdpgen/spring_electrical.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/sfdpgen/post_process.c b/lib/sfdpgen/post_process.c index 468ae0ba3..e97a55016 100644 --- a/lib/sfdpgen/post_process.c +++ b/lib/sfdpgen/post_process.c @@ -999,7 +999,7 @@ void SpringSmoother_smooth(SpringSmoother sm, SparseMatrix A, double *node_weigh /*=============================== end of spring and spring-electrical based smoother =========== */ -void post_process_smoothing(int dim, SparseMatrix A, spring_electrical_control ctrl, double *node_weights, double *x, int *flag){ +void post_process_smoothing(int dim, SparseMatrix A, spring_electrical_control ctrl, double *x, int *flag){ #ifdef TIME clock_t cpu; #endif @@ -1053,7 +1053,7 @@ void post_process_smoothing(int dim, SparseMatrix A, spring_electrical_control c for (k = 0; k < 1; k++){ sm = SpringSmoother_new(A, dim, ctrl, x); - SpringSmoother_smooth(sm, A, node_weights, dim, x); + SpringSmoother_smooth(sm, A, NULL, dim, x); SpringSmoother_delete(sm); } diff --git a/lib/sfdpgen/post_process.h b/lib/sfdpgen/post_process.h index 0a4284054..0fab08388 100644 --- a/lib/sfdpgen/post_process.h +++ b/lib/sfdpgen/post_process.h @@ -66,7 +66,7 @@ void SpringSmoother_delete(SpringSmoother sm); void SpringSmoother_smooth(SpringSmoother sm, SparseMatrix A, double *node_weights, int dim, double *x); /*------------------------------------------------------------------*/ -void post_process_smoothing(int dim, SparseMatrix A, spring_electrical_control ctrl, double *node_weights, double *x, int *flag); +void post_process_smoothing(int dim, SparseMatrix A, spring_electrical_control ctrl, double *x, int *flag); /*-------------------- sparse stress majorizationp ------------------- */ typedef StressMajorizationSmoother SparseStressMajorizationSmoother; diff --git a/lib/sfdpgen/spring_electrical.c b/lib/sfdpgen/spring_electrical.c index 7bbcaf3c6..5712a346f 100644 --- a/lib/sfdpgen/spring_electrical.c +++ b/lib/sfdpgen/spring_electrical.c @@ -2083,7 +2083,7 @@ static void multilevel_spring_electrical_embedding_core(int dim, SparseMatrix A0 cpu = clock(); #endif - post_process_smoothing(dim, A, ctrl, NULL, x, flag); + post_process_smoothing(dim, A, ctrl, x, flag); if (Verbose) fprintf(stderr, "ctrl->overlap=%d\n",ctrl->overlap); -- 2.40.0