From 3f6fe366cc0a1c965389b30c7c74f5539e7a04c3 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 11 Jan 2023 17:14:22 +0100 Subject: pssolve: fix construct_matrix() signature Make it compatible with TPExecuteCallback --- pssolve.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pssolve.c b/pssolve.c index 882eed3..e03404e 100644 --- a/pssolve.c +++ b/pssolve.c @@ -73,7 +73,7 @@ typedef struct ConstructMatrixThread { unsigned int var_idx; } ConstructMatrixThread; -static void construct_matrix(void *arg, unsigned int job_idx, unsigned int thread_idx) +static int construct_matrix(void *arg, unsigned int job_idx, unsigned int thread_idx) { ConstructMatrixThread *cmt = arg; const PSEquationContext *eq_ctx = cmt->eq_ctx; @@ -92,6 +92,8 @@ static void construct_matrix(void *arg, unsigned int job_idx, unsigned int threa mat[idx_grid + mat_stride * idx_coeff] = val; } + + return 0; } static int lu_invert(TDLogger *logger, const int N, double *mat, double *rhs, int *ipiv) -- cgit v1.2.3