From 041d8cbf6b65e52840a3b1a2e2f0f79f8ef22a46 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 23 Jul 2022 08:18:15 -0700 Subject: [PATCH] sfdpgen jacobi: remove unused 'flag' parameter --- lib/sfdpgen/sparse_solve.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sfdpgen/sparse_solve.c b/lib/sfdpgen/sparse_solve.c index bedba34a2..05be86d40 100644 --- a/lib/sfdpgen/sparse_solve.c +++ b/lib/sfdpgen/sparse_solve.c @@ -236,7 +236,7 @@ double cg(Operator Ax, Operator precond, int n, int dim, double *x0, double *rhs return res; } -static double* jacobi(SparseMatrix A, int dim, double *x0, double *rhs, int maxit, int *flag){ +static double* jacobi(SparseMatrix A, int dim, double *x0, double *rhs, int maxit) { /* maxit iteration of jacobi */ double *x, *y, *b, sum, diag, *a; int k, i, j, n = A->n, *ia, *ja, iter; @@ -299,7 +299,7 @@ double SparseMatrix_solve(SparseMatrix A, int dim, double *x0, double *rhs, doub Operator_diag_precon_delete(precond); break; case SOLVE_METHOD_JACOBI:{ - jacobi(A, dim, x0, rhs, maxit, flag); + jacobi(A, dim, x0, rhs, maxit); break; } default: -- 2.40.0