aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-01-11 17:14:22 +0100
committerAnton Khirnov <anton@khirnov.net>2023-01-11 17:14:22 +0100
commit3f6fe366cc0a1c965389b30c7c74f5539e7a04c3 (patch)
tree921ebce1f83d7cd24f4c24284daf32492f945830
parent121a0add4a95c52c41b03723fb321e2f84902276 (diff)
pssolve: fix construct_matrix() signature
Make it compatible with TPExecuteCallback
-rw-r--r--pssolve.c4
1 files changed, 3 insertions, 1 deletions
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)